From 8a8b42be8cbb395ca4936af7f02d908ecffbe6eb Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Thu, 3 Apr 2025 13:48:03 -0700 Subject: [PATCH] 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 --- scripts/build/gen_relocate_app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/build/gen_relocate_app.py b/scripts/build/gen_relocate_app.py index 8cb8e47b5b4..fe72d958d26 100755 --- a/scripts/build/gen_relocate_app.py +++ b/scripts/build/gen_relocate_app.py @@ -49,9 +49,7 @@ import warnings from collections import defaultdict from enum import Enum from pathlib import Path -from typing import NamedTuple -from typing import NewType -from typing import Tuple +from typing import NamedTuple, NewType, Tuple from elftools.elf.elffile import ELFFile from elftools.elf.sections import SymbolTableSection