forked from VimPlug/jedi
star imports and usages
This commit is contained in:
+2
-1
@@ -382,7 +382,8 @@ class Script(object):
|
|||||||
if add_import_name:
|
if add_import_name:
|
||||||
import_name = user_stmt.get_defined_names()
|
import_name = user_stmt.get_defined_names()
|
||||||
# imports have only one name
|
# imports have only one name
|
||||||
if name_part == import_name[0].names[-1]:
|
if not user_stmt.star \
|
||||||
|
and name_part == import_name[0].names[-1]:
|
||||||
definitions.append(import_name[0])
|
definitions.append(import_name[0])
|
||||||
else:
|
else:
|
||||||
stmt = self._get_under_cursor_stmt(goto_path)
|
stmt = self._get_under_cursor_stmt(goto_path)
|
||||||
|
|||||||
@@ -89,6 +89,9 @@ from import_tree.rename1 import abc
|
|||||||
#< (0, 32),
|
#< (0, 32),
|
||||||
from import_tree.rename1 import not_existing
|
from import_tree.rename1 import not_existing
|
||||||
|
|
||||||
|
# shouldn't work
|
||||||
|
#<
|
||||||
|
from not_existing import *
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
# classes
|
# classes
|
||||||
|
|||||||
Reference in New Issue
Block a user