From 346a8b8288a085bf54c81fb437b8a330832a0f77 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 17 Oct 2026 09:55:50 +0800 Subject: [PATCH] fix(telegram): satisfy type debt ratchet --- app/modules/telegram/telegram.py | 2 +- tests/fixtures/architecture/mypy-baseline.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/modules/telegram/telegram.py b/app/modules/telegram/telegram.py index fc3343d9e..891ee19fc 100644 --- a/app/modules/telegram/telegram.py +++ b/app/modules/telegram/telegram.py @@ -947,7 +947,7 @@ class Telegram: *, chat_id: Union[str, int], text: Optional[str], - buttons: Optional[List[List[dict]]], + buttons: Optional[List[List[Dict[str, Any]]]], force_reply: bool, original_message_id: Optional[int], original_chat_id: Optional[str], diff --git a/tests/fixtures/architecture/mypy-baseline.json b/tests/fixtures/architecture/mypy-baseline.json index 00517a276..b25f27029 100644 --- a/tests/fixtures/architecture/mypy-baseline.json +++ b/tests/fixtures/architecture/mypy-baseline.json @@ -1289,8 +1289,7 @@ "union-attr": 1 }, "app/modules/telegram/telegram.py": { - "arg-type": 1, - "assignment": 2, + "assignment": 1, "no-any-return": 8, "no-untyped-def": 13, "return-value": 1,