lint: add strict=True to engine search zip() (B905)
results comes from asyncio.gather over to_search, so they're always equal length — strict=True asserts the invariant and satisfies ruff B905. Carried in with #896.
This commit is contained in:
parent
c033656fdf
commit
92025f5fb3
1 changed files with 1 additions and 1 deletions
|
|
@ -480,7 +480,7 @@ class DownloadEngine:
|
||||||
return_exceptions=True,
|
return_exceptions=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
for (source_name, _), result in zip(to_search, results):
|
for (source_name, _), result in zip(to_search, results, strict=True):
|
||||||
if isinstance(result, Exception):
|
if isinstance(result, Exception):
|
||||||
logger.warning(f"{source_name} search failed: {result}")
|
logger.warning(f"{source_name} search failed: {result}")
|
||||||
contributions.append(f"{source_name}=error")
|
contributions.append(f"{source_name}=error")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue