---
source: crates/ruff/src/rules/flake8_bugbear/mod.rs
---
B020.py:8:5: B020 Loop control variable `items` overrides iterable it iterates
   |
 8 | items = [1, 2, 3]
 9 | 
10 | for items in items:
   |     ^^^^^ B020
11 |     print(items)
   |

B020.py:21:10: B020 Loop control variable `values` overrides iterable it iterates
   |
21 |     print(f"{key}, {value}")
22 | 
23 | for key, values in values.items():
   |          ^^^^^^ B020
24 |     print(f"{key}, {values}")
   |

B020.py:36:5: B020 Loop control variable `vars` overrides iterable it iterates
   |
36 | # However we still call out reassigning the iterable in the comprehension.
37 | for vars in [i for i in vars]:
   |     ^^^^ B020
38 |     print(vars)
   |


