Derived from the Pylint linter.
This rule is unstable and in preview. The
--preview flag is required for use.
What it does#
Checks for uses of the
global keyword at the module level.
Why is this bad?#
global keyword is used within functions to indicate that a name
refers to a global variable, rather than a local variable.
At the module level, all names are global by default, so the
keyword is redundant.