From f58ae3b6ee27d9ba17e0ce11a8f0bf02dd906cab Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 17 Oct 2026 07:17:55 +0800 Subject: [PATCH] fix(types): preserve optional workflow plugin filters --- app/api/endpoints/workflow.py | 2 +- mypy.ini | 1 + tests/fixtures/architecture/mypy-baseline.json | 3 --- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/api/endpoints/workflow.py b/app/api/endpoints/workflow.py index e8782e9d8..73ef26f7f 100644 --- a/app/api/endpoints/workflow.py +++ b/app/api/endpoints/workflow.py @@ -137,7 +137,7 @@ async def create_workflow( response_model=List[_SchemaPluginWorkflowActionGroup], ) def list_plugin_actions( - plugin_id: str = None, _: Any = Depends(get_current_active_manage_user), + plugin_id: Optional[str] = None, _: Any = Depends(get_current_active_manage_user), page: CompatiblePageParam = None, count: CompatibleCountParam = None, ) -> Any: diff --git a/mypy.ini b/mypy.ini index a42306b00..a4a1381dd 100644 --- a/mypy.ini +++ b/mypy.ini @@ -7,6 +7,7 @@ follow_imports = skip show_error_codes = True pretty = True files = + app/api/endpoints/workflow.py, app/adapters/external/cookiecloud.py, app/modules/indexer/parser/bitpt.py, app/modules/indexer/parser/zhixing.py, diff --git a/tests/fixtures/architecture/mypy-baseline.json b/tests/fixtures/architecture/mypy-baseline.json index a9c50f01e..d5ed1d9e3 100644 --- a/tests/fixtures/architecture/mypy-baseline.json +++ b/tests/fixtures/architecture/mypy-baseline.json @@ -453,9 +453,6 @@ "str-bytes-safe": 1, "type-arg": 3 }, - "app/api/endpoints/workflow.py": { - "assignment": 1 - }, "app/api/servarr.py": { "arg-type": 2, "assignment": 1,