mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
fix a little problem with import keyword autocompletion
This commit is contained in:
@@ -149,7 +149,6 @@ class Script(object):
|
|||||||
r'(,|from)\s*$|import\s+$', completion_line):
|
r'(,|from)\s*$|import\s+$', completion_line):
|
||||||
completions += ((k, bs) for k
|
completions += ((k, bs) for k
|
||||||
in keywords.get_keywords('import'))
|
in keywords.get_keywords('import'))
|
||||||
u = None
|
|
||||||
|
|
||||||
if not path and not isinstance(u, parsing.Import):
|
if not path and not isinstance(u, parsing.Import):
|
||||||
# add keywords
|
# add keywords
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ import datetime.
|
|||||||
#? []
|
#? []
|
||||||
import datetime.date
|
import datetime.date
|
||||||
|
|
||||||
#? 18 ['mod1', 'random', 'pkg', 'rename1', 'rename2']
|
#? 18 ['mod1', 'random', 'pkg', 'rename1', 'rename2', 'import']
|
||||||
from import_tree. import pkg
|
from import_tree. import pkg
|
||||||
|
|
||||||
#? 18 ['pkg']
|
#? 18 ['pkg']
|
||||||
|
|||||||
Reference in New Issue
Block a user