mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
globals
This commit is contained in:
@@ -543,6 +543,10 @@ class Statement(Simple):
|
||||
# array
|
||||
return self._assignment_details or []
|
||||
|
||||
def is_global(self):
|
||||
# first keyword of the first token is global -> must be a global
|
||||
return str(self.token_list[0]) == "global"
|
||||
|
||||
def get_assignment_calls(self):
|
||||
"""
|
||||
This is not done in the main parser, because it might be slow and
|
||||
|
||||
Reference in New Issue
Block a user