diff --git a/app/adapters/web/plugin/routes.py b/app/adapters/web/plugin/routes.py index 4bc3e319c..425acc2ed 100644 --- a/app/adapters/web/plugin/routes.py +++ b/app/adapters/web/plugin/routes.py @@ -34,7 +34,7 @@ class FastAPIDynamicRouteRegistry: self, app: FastAPI, plugin_ids: Callable[[], list[str]], - plugin_apis: Callable[[str], list[dict]], + plugin_apis: Callable[[str], list[dict[str, Any]]], verify_token: Callable[..., Any], verify_apikey: Callable[..., Any], prefix: str, diff --git a/mypy.ini b/mypy.ini index a4a1381dd..5103b1fe0 100644 --- a/mypy.ini +++ b/mypy.ini @@ -7,6 +7,7 @@ follow_imports = skip show_error_codes = True pretty = True files = + app/adapters/web/plugin/routes.py, app/api/endpoints/workflow.py, app/adapters/external/cookiecloud.py, app/modules/indexer/parser/bitpt.py, diff --git a/tests/fixtures/architecture/mypy-baseline.json b/tests/fixtures/architecture/mypy-baseline.json index d5ed1d9e3..4fbe7ea4b 100644 --- a/tests/fixtures/architecture/mypy-baseline.json +++ b/tests/fixtures/architecture/mypy-baseline.json @@ -78,9 +78,6 @@ "app/adapters/system/stdio.py": { "override": 1 }, - "app/adapters/web/plugin/routes.py": { - "type-arg": 1 - }, "app/agent/llm/capability.py": { "no-any-return": 4, "no-untyped-def": 6,