|
1 | 1 | ---
|
2 | 2 | source: crates/ruff/src/rules/flake8_bugbear/mod.rs
|
3 | 3 | ---
|
4 |
| -B905.py:1:1: B905 `zip()` without an explicit `strict=` parameter |
| 4 | +B905.py:4:1: B905 `zip()` without an explicit `strict=` parameter |
5 | 5 | |
|
6 |
| -1 | zip() |
| 6 | +4 | # Errors |
| 7 | +5 | zip() |
7 | 8 | | ^^^^^ B905
|
8 |
| -2 | zip(range(3)) |
9 |
| -3 | zip("a", "b") |
| 9 | +6 | zip(range(3)) |
| 10 | +7 | zip("a", "b") |
10 | 11 | |
|
11 | 12 |
|
12 |
| -B905.py:2:1: B905 `zip()` without an explicit `strict=` parameter |
| 13 | +B905.py:5:1: B905 `zip()` without an explicit `strict=` parameter |
13 | 14 | |
|
14 |
| -2 | zip() |
15 |
| -3 | zip(range(3)) |
| 15 | +5 | # Errors |
| 16 | +6 | zip() |
| 17 | +7 | zip(range(3)) |
16 | 18 | | ^^^^^^^^^^^^^ B905
|
17 |
| -4 | zip("a", "b") |
18 |
| -5 | zip("a", "b", *zip("c")) |
| 19 | +8 | zip("a", "b") |
| 20 | +9 | zip("a", "b", *zip("c")) |
19 | 21 | |
|
20 | 22 |
|
21 |
| -B905.py:3:1: B905 `zip()` without an explicit `strict=` parameter |
22 |
| - | |
23 |
| -3 | zip() |
24 |
| -4 | zip(range(3)) |
25 |
| -5 | zip("a", "b") |
26 |
| - | ^^^^^^^^^^^^^ B905 |
27 |
| -6 | zip("a", "b", *zip("c")) |
28 |
| -7 | zip(zip("a"), strict=False) |
29 |
| - | |
| 23 | +B905.py:6:1: B905 `zip()` without an explicit `strict=` parameter |
| 24 | + | |
| 25 | + 6 | zip() |
| 26 | + 7 | zip(range(3)) |
| 27 | + 8 | zip("a", "b") |
| 28 | + | ^^^^^^^^^^^^^ B905 |
| 29 | + 9 | zip("a", "b", *zip("c")) |
| 30 | +10 | zip(zip("a"), strict=False) |
| 31 | + | |
30 | 32 |
|
31 |
| -B905.py:4:1: B905 `zip()` without an explicit `strict=` parameter |
32 |
| - | |
33 |
| -4 | zip(range(3)) |
34 |
| -5 | zip("a", "b") |
35 |
| -6 | zip("a", "b", *zip("c")) |
36 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^ B905 |
37 |
| -7 | zip(zip("a"), strict=False) |
38 |
| -8 | zip(zip("a", strict=True)) |
39 |
| - | |
| 33 | +B905.py:7:1: B905 `zip()` without an explicit `strict=` parameter |
| 34 | + | |
| 35 | + 7 | zip(range(3)) |
| 36 | + 8 | zip("a", "b") |
| 37 | + 9 | zip("a", "b", *zip("c")) |
| 38 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ B905 |
| 39 | +10 | zip(zip("a"), strict=False) |
| 40 | +11 | zip(zip("a", strict=True)) |
| 41 | + | |
40 | 42 |
|
41 |
| -B905.py:4:16: B905 `zip()` without an explicit `strict=` parameter |
42 |
| - | |
43 |
| -4 | zip(range(3)) |
44 |
| -5 | zip("a", "b") |
45 |
| -6 | zip("a", "b", *zip("c")) |
46 |
| - | ^^^^^^^^ B905 |
47 |
| -7 | zip(zip("a"), strict=False) |
48 |
| -8 | zip(zip("a", strict=True)) |
49 |
| - | |
| 43 | +B905.py:7:16: B905 `zip()` without an explicit `strict=` parameter |
| 44 | + | |
| 45 | + 7 | zip(range(3)) |
| 46 | + 8 | zip("a", "b") |
| 47 | + 9 | zip("a", "b", *zip("c")) |
| 48 | + | ^^^^^^^^ B905 |
| 49 | +10 | zip(zip("a"), strict=False) |
| 50 | +11 | zip(zip("a", strict=True)) |
| 51 | + | |
50 | 52 |
|
51 |
| -B905.py:5:5: B905 `zip()` without an explicit `strict=` parameter |
52 |
| - | |
53 |
| -5 | zip("a", "b") |
54 |
| -6 | zip("a", "b", *zip("c")) |
55 |
| -7 | zip(zip("a"), strict=False) |
56 |
| - | ^^^^^^^^ B905 |
57 |
| -8 | zip(zip("a", strict=True)) |
58 |
| - | |
| 53 | +B905.py:8:5: B905 `zip()` without an explicit `strict=` parameter |
| 54 | + | |
| 55 | + 8 | zip("a", "b") |
| 56 | + 9 | zip("a", "b", *zip("c")) |
| 57 | +10 | zip(zip("a"), strict=False) |
| 58 | + | ^^^^^^^^ B905 |
| 59 | +11 | zip(zip("a", strict=True)) |
| 60 | + | |
59 | 61 |
|
60 |
| -B905.py:6:1: B905 `zip()` without an explicit `strict=` parameter |
| 62 | +B905.py:9:1: B905 `zip()` without an explicit `strict=` parameter |
61 | 63 | |
|
62 |
| - 6 | zip("a", "b", *zip("c")) |
63 |
| - 7 | zip(zip("a"), strict=False) |
64 |
| - 8 | zip(zip("a", strict=True)) |
| 64 | + 9 | zip("a", "b", *zip("c")) |
| 65 | +10 | zip(zip("a"), strict=False) |
| 66 | +11 | zip(zip("a", strict=True)) |
65 | 67 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ B905
|
66 |
| - 9 | |
67 |
| -10 | zip(range(3), strict=True) |
| 68 | +12 | |
| 69 | +13 | # OK |
| 70 | + | |
| 71 | + |
| 72 | +B905.py:24:1: B905 `zip()` without an explicit `strict=` parameter |
| 73 | + | |
| 74 | +24 | # Errors (limited iterators). |
| 75 | +25 | zip([1, 2, 3], repeat(1, 1)) |
| 76 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ B905 |
| 77 | +26 | zip([1, 2, 3], repeat(1, times=4)) |
| 78 | + | |
| 79 | + |
| 80 | +B905.py:25:1: B905 `zip()` without an explicit `strict=` parameter |
| 81 | + | |
| 82 | +25 | # Errors (limited iterators). |
| 83 | +26 | zip([1, 2, 3], repeat(1, 1)) |
| 84 | +27 | zip([1, 2, 3], repeat(1, times=4)) |
| 85 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ B905 |
68 | 86 | |
|
69 | 87 |
|
70 | 88 |
|
0 commit comments