diff --git a/src/core/database.py b/src/core/database.py index 47578ea..94ffbc0 100644 --- a/src/core/database.py +++ b/src/core/database.py @@ -4,7 +4,7 @@ import logging import json import random from pathlib import Path -from typing import Optional, Dict, Any, Union +from typing import Optional, Dict, Any, List, Union import threading import sys from src.core.utils import parse_snowflake diff --git a/src/core/state.py b/src/core/state.py index eb816c5..7388c40 100644 --- a/src/core/state.py +++ b/src/core/state.py @@ -232,7 +232,7 @@ class MigrationState: return None - def get_global_min_last_message_id(self, all_mapped_ids: List[str]) -> int | None: + def get_global_min_last_message_id(self, all_mapped_ids: list[str]) -> int | None: """Returns the absolute minimum last_msg_id among the given list of mapped target IDs (channels and threads).""" if self._ensure_db(): return self.db.get_global_min_last_message_id(all_mapped_ids)