From f1cb4b2ff6b33324bbb374d2041bf01498e34561 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 1 Oct 2026 09:43:29 +0800 Subject: [PATCH] fix(agent): keep mypy ratchet green --- app/agent/orchestrator.py | 4 ++-- tests/fixtures/architecture/mypy-baseline.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/agent/orchestrator.py b/app/agent/orchestrator.py index fa2d8998f..cfffe905b 100644 --- a/app/agent/orchestrator.py +++ b/app/agent/orchestrator.py @@ -2252,8 +2252,8 @@ class MoviePilotAgent: @staticmethod async def _stream_agent_tokens( agent, - messages: dict, - config: dict, + messages: dict[str, Any], + config: dict[str, Any], on_token: Callable[[str], None], stream_handler: Any = None, ): diff --git a/tests/fixtures/architecture/mypy-baseline.json b/tests/fixtures/architecture/mypy-baseline.json index 6af4642a5..610cf63e2 100644 --- a/tests/fixtures/architecture/mypy-baseline.json +++ b/tests/fixtures/architecture/mypy-baseline.json @@ -206,7 +206,7 @@ "no-any-return": 7, "no-untyped-call": 3, "no-untyped-def": 13, - "type-arg": 13, + "type-arg": 12, "union-attr": 3, "var-annotated": 1 },