fix: restore search provider type contract

This commit is contained in:
jxxghp
2026-09-06 22:36:07 +08:00
parent c41dc69596
commit eda80050c5
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -344,7 +344,7 @@ class _SearchProviderSyncOwner(_SearchOwnerBase):
media_type: Optional[MediaType], media_type: Optional[MediaType],
results: List[TorrentInfo], results: List[TorrentInfo],
progress: ProgressHelper, progress: ProgressHelper,
) -> None: ) -> Dict[str, tuple[str, float]]:
"""在共享线程池中按站点串行翻页,并把结果合并到调用方集合。""" """在共享线程池中按站点串行翻页,并把结果合并到调用方集合。"""
total_num = len(indexer_sites) * len(search_pages) total_num = len(indexer_sites) * len(search_pages)
pending: SyncPending = {} pending: SyncPending = {}
+2 -3
View File
@@ -2668,9 +2668,8 @@
"app/runtime/state.py": { "app/runtime/state.py": {
"attr-defined": 2, "attr-defined": 2,
"no-any-return": 2, "no-any-return": 2,
"no-untyped-call": 2, "no-untyped-call": 1,
"no-untyped-def": 5, "no-untyped-def": 3,
"return-value": 1,
"type-arg": 1 "type-arg": 1
}, },
"app/runtime/thread.py": { "app/runtime/thread.py": {