Skip to content

Commit 0db532a

Browse files
Fix ruff B905: add explicit strict=False to zip() calls
The B905 rule requires explicit strict= parameter for zip() when targeting Python 3.10+, where the parameter was introduced. Using strict=False maintains the existing behavior of not enforcing equal-length iterables. Co-authored-by: karlwaldman <karl.waldman@gmail.com>
1 parent 09f9337 commit 0db532a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎oilpriceapi/async_client.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ async def get_multiple(
541541
prices = []
542542
failures = []
543543

544-
for chunk, result in zip(chunks, results):
544+
for chunk, result in zip(chunks, results, strict=False):
545545
if isinstance(result, list):
546546
prices.extend(result)
547547
continue
@@ -552,7 +552,7 @@ async def get_multiple(
552552
retry = await asyncio.gather(
553553
*(self.get(code) for code in chunk), return_exceptions=True
554554
)
555-
for code, item in zip(chunk, retry):
555+
for code, item in zip(chunk, retry, strict=False):
556556
if isinstance(item, Price):
557557
prices.append(item)
558558
else:

0 commit comments

Comments
 (0)