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

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

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