From ab95e4f745c17ca954cbb414ebc32d9e269c773e Mon Sep 17 00:00:00 2001 From: Viv Date: Mon, 29 Apr 2024 21:53:58 -0400 Subject: [PATCH] `__init__.py`: Fix mypy type issues --- src/tja2fumen/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tja2fumen/__init__.py b/src/tja2fumen/__init__.py index b5f1fa7..22f7950 100644 --- a/src/tja2fumen/__init__.py +++ b/src/tja2fumen/__init__.py @@ -6,7 +6,7 @@ import argparse import os import shutil import sys -from typing import Sequence +from typing import Sequence, Tuple, List from tja2fumen.parsers import parse_tja, parse_fumen from tja2fumen.converters import convert_tja_to_fumen, fix_dk_note_types_course @@ -72,7 +72,7 @@ processed according to the above logic. (Confirmation is required for safety.) process_file(file) -def parse_files(directory: str) -> (Sequence[str], Sequence[str]): +def parse_files(directory: str) -> Tuple[List[str], List[str]]: """Find all .tja or .bin files within a directory.""" tja_files, bin_files = [], [] for root, _, files in os.walk(directory): @@ -88,7 +88,7 @@ def parse_files(directory: str) -> (Sequence[str], Sequence[str]): return tja_files, bin_files -def process_file(fname: str): +def process_file(fname: str) -> None: """Process a single file path (TJA or BIN).""" if fname.endswith(".bin"): print(f"Repairing {fname}")