undefined-local (F823)
Added in v0.0.24 · Related issues · View source
Derived from the Pyflakes linter.
What it does
Checks for undefined local variables.
Why is this bad?
Referencing a local variable before it has been assigned will raise
an UnboundLocalError at runtime.
Example
Use instead: