fix(types): type plugin route metadata boundary

This commit is contained in:
jxxghp
2026-10-17 07:18:38 +08:00
parent f58ae3b6ee
commit 7ecf9a80f5
3 changed files with 2 additions and 4 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,