mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-28 01:33:17 +08:00
Fix a globals context issue, fixes #1435
This commit is contained in:
1 parent
e81c241905
commit
b13c4c446f
4 files changed
+15
-2
No files matched your search
@@ -188,6 +188,14 @@ def init_global_var_predefined():
|
||||
global_var_predefined
|
||||
|
||||
|
||||
def global_as_import():
|
||||
from import_tree import globals
|
||||
#? ['foo']
|
||||
globals.foo
|
||||
#? int()
|
||||
globals.foo
|
||||
|
||||
|
||||
# -----------------
|
||||
# within docstrs
|
||||
# -----------------
|
||||
|
||||
Reference in new issue
Block a user