mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Fix RecursionError: global statements in modules should just be ignored, fixes #1457
This commit is contained in:
@@ -196,6 +196,13 @@ def global_as_import():
|
||||
globals.foo
|
||||
|
||||
|
||||
global r
|
||||
r = r[r]
|
||||
if r:
|
||||
r += r + 2
|
||||
#? int()
|
||||
r
|
||||
|
||||
# -----------------
|
||||
# within docstrs
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user