redefined-while-unused (F811)#
Derived from the Pyflakes linter.
What it does#
Checks for variable definitions that redefine (or "shadow") unused variables.
Why is this bad?#
Redefinitions of unused names are unnecessary and often indicative of a mistake.
Example#
Use instead: