mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Import missed a get_set_vars function, which caused an error with user_stmt checking -> fixes issue 16 of jedi-vim
This commit is contained in:
@@ -570,6 +570,9 @@ class Import(Simple):
|
|||||||
else:
|
else:
|
||||||
return [self.namespace]
|
return [self.namespace]
|
||||||
|
|
||||||
|
def get_set_vars(self):
|
||||||
|
return self.get_defined_names()
|
||||||
|
|
||||||
def get_all_import_names(self):
|
def get_all_import_names(self):
|
||||||
n = []
|
n = []
|
||||||
if self.from_ns:
|
if self.from_ns:
|
||||||
|
|||||||
@@ -86,6 +86,9 @@ from keyword import kwlist, \
|
|||||||
#? ['kwlist']
|
#? ['kwlist']
|
||||||
kwlist
|
kwlist
|
||||||
|
|
||||||
|
#? []
|
||||||
|
from keyword import not_existing1, not_existing2
|
||||||
|
|
||||||
from tokenize import io
|
from tokenize import io
|
||||||
tokenize.generate_tokens
|
tokenize.generate_tokens
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user