global-variable-not-assigned (PLW0602)
Added in v0.0.174 · Related issues · View source
Derived from the Pylint linter.
What it does
Checks for global variables that are not assigned a value in the current
scope.
Why is this bad?
The global keyword allows an inner scope to modify a variable declared
in the outer scope. If the variable is not modified within the inner scope,
there is no need to use global.
Example
Use instead: