ruff
c7ff743d - Use `semantic().global()` to power `global-statement` rule (#5795)

Commit
2 years ago
Use `semantic().global()` to power `global-statement` rule (#5795) ## Summary The intent of this rule is to always flag the `global` declaration, not the usage. The current implementation does the wrong thing if a global is assigned multiple times. Using `semantic().global()` is also more efficient.
Author
Parents
Loading