This commit is contained in:
2025-01-27 14:48:17 +03:00
parent 6737981c7c
commit 4d52bedda6
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class BaseSession:
self.banned_dir.mkdir(parents=True, exist_ok=True) self.banned_dir.mkdir(parents=True, exist_ok=True)
self.json_errors: set[Path] = set() self.json_errors: set[Path] = set()
def iter_sessions(self) -> Generator[tuple[Path, Path, dict]]: def iter_sessions(self) -> Generator:
""" """
Поиск сессий в base_dir Поиск сессий в base_dir
Возвращает генератор с кортежами (item, json_path, json_data) Возвращает генератор с кортежами (item, json_path, json_data)

View File

@ -47,7 +47,7 @@ class JsonConverter(BaseSession):
json_write_sync(json_file, json_data) json_write_sync(json_file, json_data)
return json_data return json_data
def iter(self) -> Generator[tuple[Path, Path, dict]]: def iter(self) -> Generator:
""" """
Поиск сессий в base_dir + конвертация сессии в json (string_session) Поиск сессий в base_dir + конвертация сессии в json (string_session)
Возвращает генератор с кортежами (item, json_file, json_data) Возвращает генератор с кортежами (item, json_file, json_data)