1
0
forked from VimPlug/jedi

Split Import, now there is ImportFrom and ImportName as it exists in the python grammar.

This commit is contained in:
Dave Halter
2014-11-19 00:40:16 +01:00
parent 535a69e499
commit 3c6d5dafb1
5 changed files with 46 additions and 27 deletions

View File

@@ -97,13 +97,16 @@ def scope_from_import_variable():
def scope_from_import_variable_with_parenthesis():
from import_tree.mod2.fake import (
a, c
a, foobarbaz
)
#?
a
#?
c
foobarbaz
# shouldn't complete, should still list the name though.
#? ['foobarbaz']
foobarbaz
# -----------------
# std lib modules
@@ -303,6 +306,7 @@ from import_tree import recurse_class1
#? ['a']
recurse_class1.C.a
# github #239 RecursionError
# TODO UNCOMMENT!!!!!!
##? ['a']
recurse_class1.C().a