mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-20 10:52:50 +08:00
Fix a bug in the typeshed implementation
This commit is contained in:
@@ -99,7 +99,7 @@ class TypeshedPlugin(BasePlugin):
|
||||
else parent_module_context,
|
||||
sys_path
|
||||
)
|
||||
import_name = import_names[0]
|
||||
import_name = import_names[-1]
|
||||
map_ = None
|
||||
if len(import_names) == 1 and import_name != 'typing':
|
||||
map_ = self._cache_stub_file_map(evaluator.grammar.version_info)
|
||||
|
||||
Reference in New Issue
Block a user