Fix counting lines

This commit is contained in:
litagin02
2024-02-19 15:21:17 +09:00
parent 16ab5ac3a7
commit f49755689a

View File

@@ -16,8 +16,8 @@ preprocess_text_config = config.preprocess_text_config
# Count lines for tqdm
def count_lines(file_path):
with file_path.open("r", encoding="utf-8") as file:
def count_lines(file_path: str):
with open(file_path, "r", encoding="utf-8") as file:
return sum(1 for _ in file)