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):
|
||||
completions += ((k, bs) for k
|
||||
in keywords.get_keywords('import'))
|
||||
u = None
|
||||
|
||||
if not path and not isinstance(u, parsing.Import):
|
||||
# add keywords
|
||||
|
||||
@@ -196,7 +196,7 @@ import datetime.
|
||||
#? []
|
||||
import datetime.date
|
||||
|
||||
#? 18 ['mod1', 'random', 'pkg', 'rename1', 'rename2']
|
||||
#? 18 ['mod1', 'random', 'pkg', 'rename1', 'rename2', 'import']
|
||||
from import_tree. import pkg
|
||||
|
||||
#? 18 ['pkg']
|
||||
|
||||
Reference in New Issue
Block a user