From 92025f5fb3b435fad2a7300772097d6a5d6a6186 Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Thu, 25 Jun 2026 16:41:00 -0700 Subject: [PATCH] lint: add strict=True to engine search zip() (B905) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- core/download_engine/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/download_engine/engine.py b/core/download_engine/engine.py index 1d555432..de1aca38 100644 --- a/core/download_engine/engine.py +++ b/core/download_engine/engine.py @@ -480,7 +480,7 @@ class DownloadEngine: 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): logger.warning(f"{source_name} search failed: {result}") contributions.append(f"{source_name}=error")