Derived from the Pylint linter.
What it does#
Checks for uses of names that are declared as
global prior to the
Why is this bad?#
global declaration applies to the entire scope. Using a name that's
global in a given scope prior to the relevant
declaration is a syntax error.