From 7a15f0b1acbc1c2bfc0c408cf98f45887d330e8a Mon Sep 17 00:00:00 2001 From: emozilla Date: Wed, 27 May 2026 22:42:16 -0400 Subject: [PATCH] fix(telegram): import Set for _dm_topic_chat_ids annotation self._dm_topic_chat_ids: Set[str] = {...} at line 460 references Set but only Dict, List, Optional, Any are imported from typing. The file has no 'from __future__ import annotations', so the annotation is evaluated at runtime and raises NameError on TelegramAdapter construction. --- gateway/platforms/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/platforms/telegram.py b/gateway/platforms/telegram.py index 300fc49c04f..16977bbcff1 100644 --- a/gateway/platforms/telegram.py +++ b/gateway/platforms/telegram.py @@ -16,7 +16,7 @@ import tempfile import html as _html import re from datetime import datetime, timezone -from typing import Dict, List, Optional, Any +from typing import Dict, List, Optional, Set, Any logger = logging.getLogger(__name__)