diff --git a/basethon/base_session.py b/basethon/base_session.py index 75bd4f3..a7dd907 100644 --- a/basethon/base_session.py +++ b/basethon/base_session.py @@ -14,7 +14,7 @@ class BaseSession: self.banned_dir.mkdir(parents=True, exist_ok=True) self.json_errors: set[Path] = set() - def iter_sessions(self) -> Generator[tuple[Path, Path, dict]]: + def iter_sessions(self) -> Generator: """ Поиск сессий в base_dir Возвращает генератор с кортежами (item, json_path, json_data) diff --git a/basethon/json_converter.py b/basethon/json_converter.py index 00a2b91..a192ee6 100644 --- a/basethon/json_converter.py +++ b/basethon/json_converter.py @@ -47,7 +47,7 @@ class JsonConverter(BaseSession): json_write_sync(json_file, json_data) return json_data - def iter(self) -> Generator[tuple[Path, Path, dict]]: + def iter(self) -> Generator: """ Поиск сессий в base_dir + конвертация сессии в json (string_session) Возвращает генератор с кортежами (item, json_file, json_data)