From eda80050c5194ba905a4ffc407336d13ff6b9a25 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 6 Sep 2026 22:36:07 +0800 Subject: [PATCH] fix: restore search provider type contract --- app/chain/search/provider.py | 2 +- tests/fixtures/architecture/mypy-baseline.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/chain/search/provider.py b/app/chain/search/provider.py index a207747f3..8506a7b60 100644 --- a/app/chain/search/provider.py +++ b/app/chain/search/provider.py @@ -344,7 +344,7 @@ class _SearchProviderSyncOwner(_SearchOwnerBase): media_type: Optional[MediaType], results: List[TorrentInfo], progress: ProgressHelper, - ) -> None: + ) -> Dict[str, tuple[str, float]]: """在共享线程池中按站点串行翻页,并把结果合并到调用方集合。""" total_num = len(indexer_sites) * len(search_pages) pending: SyncPending = {} diff --git a/tests/fixtures/architecture/mypy-baseline.json b/tests/fixtures/architecture/mypy-baseline.json index 4192a21b2..9a7f96214 100644 --- a/tests/fixtures/architecture/mypy-baseline.json +++ b/tests/fixtures/architecture/mypy-baseline.json @@ -2668,9 +2668,8 @@ "app/runtime/state.py": { "attr-defined": 2, "no-any-return": 2, - "no-untyped-call": 2, - "no-untyped-def": 5, - "return-value": 1, + "no-untyped-call": 1, + "no-untyped-def": 3, "type-arg": 1 }, "app/runtime/thread.py": {