mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-16 02:27:06 +08:00
a (temporary) solution for the __file__ access issues in imported modules, see #408
This commit is contained in:
@@ -46,8 +46,8 @@ def scope_nested():
|
||||
#? ['sqrt']
|
||||
import_tree.pkg.sqrt
|
||||
|
||||
#? ['a', 'pkg']
|
||||
import_tree.
|
||||
#? ['pkg']
|
||||
import_tree.p
|
||||
|
||||
#? float()
|
||||
import_tree.pkg.mod1.a
|
||||
@@ -317,3 +317,12 @@ else:
|
||||
a = not_existing_import
|
||||
#?
|
||||
a
|
||||
|
||||
# -----------------
|
||||
# magic methods
|
||||
# -----------------
|
||||
|
||||
def magic_method():
|
||||
import keyword
|
||||
#? ['__file__']
|
||||
keyword.__file__
|
||||
|
||||
Reference in New Issue
Block a user