loop-variable-overrides-iterator (B020)
Derived from the flake8-bugbear linter.
What it does
Checks for loop control variables that override the loop iterable.
Why is this bad?
Loop control variables should not override the loop iterable, as this can lead to confusing behavior.
Instead, use a distinct variable name for any loop control variables.
Example
Use instead: