From ae72dd745947030b8032e78f865d953fd6db95aa Mon Sep 17 00:00:00 2001 From: kawa Date: Fri, 12 Sep 2025 16:23:00 +0200 Subject: [PATCH] List[ --- tools/generate_asset_enums.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/generate_asset_enums.py b/tools/generate_asset_enums.py index 06f130ab..0779b975 100644 --- a/tools/generate_asset_enums.py +++ b/tools/generate_asset_enums.py @@ -102,7 +102,7 @@ def build_asset_enum(asset_map: Dict[str, str], existing_assets: Dict[str, str]) def remove_unnecessary_unused_asset_lines(lines: List[str]) -> List[str]: prev_unused = False unused_asset_line_indexes = [] - # Create list of lines that contain "// xx is unused" + # Create List of lines that contain "// xx is unused" for idx, line in enumerate(lines): if line.endswith('unused') is False: continue @@ -146,7 +146,7 @@ def remove_unnecessary_unused_asset_lines(lines: List[str]) -> List[str]: group = [] target = next + idx - # Replace the "unnecessary" lines with a single line that lists the range that is unused + # Replace the "unnecessary" lines with a single line that Lists the range that is unused offset = 0 address_regex = re.compile(r"^// (\w+) unused$") for group in groups: