nonlocal-without-binding (PLE0117)
Added in v0.0.174 · Related issues · View source
Derived from the Pylint linter.
What it does
Checks for nonlocal names without bindings.
Why is this bad?
nonlocal names must be bound to a name in an outer scope.
Violating this rule leads to a SyntaxError at runtime.
Example
Use instead: