bpo-40196: Fix a bug in the symtable when reporting inspecting global variables (GH-19391)

This commit is contained in:
Pablo Galindo 2020-04-06 17:05:57 +01:00 committed by GitHub
parent 38aefc585f
commit 799d7d61a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -197,7 +197,7 @@ class Symbol(object):
return bool(self.__scope == GLOBAL_EXPLICIT)
def is_local(self):
return bool(self.__flags & DEF_BOUND)
return bool(self.__scope in (LOCAL, CELL))
def is_annotated(self):
return bool(self.__flags & DEF_ANNOT)