Ignore globals when checking local variable names (#800)

This commit is contained in:
Charlie Marsh
2022-11-17 17:19:01 -05:00
committed by GitHub
parent 801c76037f
commit 66ae4db6cd
5 changed files with 42 additions and 35 deletions

View File

@@ -1,8 +1,12 @@
import collections
from collections import namedtuple
GLOBAL: str = "foo"
def f():
global GLOBAL
GLOBAL = "bar"
lower = 0
Camel = 0
CONSTANT = 0