mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-06 07:09:09 +08:00
fix(types): type plugin route metadata boundary
This commit is contained in:
@@ -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,
|
||||
|
||||
1
mypy.ini
1
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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user