global-statement (PLW0603)
Derived from the Pylint linter.
What it does
Checks for the use of global
statements to update identifiers.
Why is this bad?
Pylint discourages the use of global
variables as global mutable
state is a common source of bugs and confusing behavior.
Example
Use instead: