forked from VimPlug/jedi
Fix a bug in the typeshed implementation
This commit is contained in:
@@ -99,7 +99,7 @@ class TypeshedPlugin(BasePlugin):
|
|||||||
else parent_module_context,
|
else parent_module_context,
|
||||||
sys_path
|
sys_path
|
||||||
)
|
)
|
||||||
import_name = import_names[0]
|
import_name = import_names[-1]
|
||||||
map_ = None
|
map_ = None
|
||||||
if len(import_names) == 1 and import_name != 'typing':
|
if len(import_names) == 1 and import_name != 'typing':
|
||||||
map_ = self._cache_stub_file_map(evaluator.grammar.version_info)
|
map_ = self._cache_stub_file_map(evaluator.grammar.version_info)
|
||||||
|
|||||||
Reference in New Issue
Block a user