load-before-global-declaration (PLE0118)
Added in v0.0.174 · Related issues · View source
Derived from the Pylint linter.
What it does
Checks for uses of names that are declared as global prior to the
relevant global declaration.
Why is this bad?
The global declaration applies to the entire scope. Using a name that's
declared as global in a given scope prior to the relevant global
declaration is a SyntaxError.
Example
Use instead: