code_relocation: combine typing imports onto a single line

The script can be made more concise by combining the imports of three
classes from the typing module into a single line.

Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
This commit is contained in:
Joel Holdsworth 2025-04-03 13:48:03 -07:00 committed by Benjamin Cabé
commit 8a8b42be8c

View file

@ -49,9 +49,7 @@ import warnings
from collections import defaultdict from collections import defaultdict
from enum import Enum from enum import Enum
from pathlib import Path from pathlib import Path
from typing import NamedTuple from typing import NamedTuple, NewType, Tuple
from typing import NewType
from typing import Tuple
from elftools.elf.elffile import ELFFile from elftools.elf.elffile import ELFFile
from elftools.elf.sections import SymbolTableSection from elftools.elf.sections import SymbolTableSection