---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
---
B905 [*] `zip()` without an explicit `strict=` parameter
 --> B905.py:4:1
  |
3 | # Errors
4 | zip("a", "b")
  | ^^^^^^^^^^^^^
5 | zip("a", "b", *zip("c"))
6 | zip(zip("a", "b"), strict=False)
  |
help: Add explicit value for parameter `strict=`
  |
3 | # Errors
  - zip("a", "b")
4 + zip("a", "b", strict=False)
5 | zip("a", "b", *zip("c"))
  |
note: This is an unsafe fix and may change runtime behavior

B905 [*] `zip()` without an explicit `strict=` parameter
 --> B905.py:5:1
  |
3 | # Errors
4 | zip("a", "b")
5 | zip("a", "b", *zip("c"))
  | ^^^^^^^^^^^^^^^^^^^^^^^^
6 | zip(zip("a", "b"), strict=False)
7 | zip(zip("a", strict=True),"b")
  |
help: Add explicit value for parameter `strict=`
  |
4 | zip("a", "b")
  - zip("a", "b", *zip("c"))
5 + zip("a", "b", *zip("c"), strict=False)
6 | zip(zip("a", "b"), strict=False)
  |
note: This is an unsafe fix and may change runtime behavior

B905 [*] `zip()` without an explicit `strict=` parameter
 --> B905.py:6:5
  |
4 | zip("a", "b")
5 | zip("a", "b", *zip("c"))
6 | zip(zip("a", "b"), strict=False)
  |     ^^^^^^^^^^^^^
7 | zip(zip("a", strict=True),"b")
  |
help: Add explicit value for parameter `strict=`
  |
5 | zip("a", "b", *zip("c"))
  - zip(zip("a", "b"), strict=False)
6 + zip(zip("a", "b", strict=False), strict=False)
7 | zip(zip("a", strict=True),"b")
  |
note: This is an unsafe fix and may change runtime behavior

B905 [*] `zip()` without an explicit `strict=` parameter
 --> B905.py:7:1
  |
5 | zip("a", "b", *zip("c"))
6 | zip(zip("a", "b"), strict=False)
7 | zip(zip("a", strict=True),"b")
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 |
9 | # OK
  |
help: Add explicit value for parameter `strict=`
  |
6 | zip(zip("a", "b"), strict=False)
  - zip(zip("a", strict=True),"b")
7 + zip(zip("a", strict=True),"b", strict=False)
8 |
  |
note: This is an unsafe fix and may change runtime behavior

B905 [*] `zip()` without an explicit `strict=` parameter
  --> B905.py:22:1
   |
21 | # Errors (limited iterators).
22 | zip([1, 2, 3], repeat(1, 1))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 | zip([1, 2, 3], repeat(1, times=4))
   |
help: Add explicit value for parameter `strict=`
   |
21 | # Errors (limited iterators).
   - zip([1, 2, 3], repeat(1, 1))
22 + zip([1, 2, 3], repeat(1, 1), strict=False)
23 | zip([1, 2, 3], repeat(1, times=4))
   |
note: This is an unsafe fix and may change runtime behavior

B905 [*] `zip()` without an explicit `strict=` parameter
  --> B905.py:23:1
   |
21 | # Errors (limited iterators).
22 | zip([1, 2, 3], repeat(1, 1))
23 | zip([1, 2, 3], repeat(1, times=4))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 |
25 | import builtins
   |
help: Add explicit value for parameter `strict=`
   |
22 | zip([1, 2, 3], repeat(1, 1))
   - zip([1, 2, 3], repeat(1, times=4))
23 + zip([1, 2, 3], repeat(1, times=4), strict=False)
24 |
   |
note: This is an unsafe fix and may change runtime behavior

B905 [*] `zip()` without an explicit `strict=` parameter
  --> B905.py:34:1
   |
32 | zip(range(3))
33 | # Error
34 | zip(*lot_of_iterators)
   | ^^^^^^^^^^^^^^^^^^^^^^
   |
help: Add explicit value for parameter `strict=`
   |
33 | # Error
   - zip(*lot_of_iterators)
34 + zip(*lot_of_iterators, strict=False)
   |
note: This is an unsafe fix and may change runtime behavior
