Fix a bug in the typeshed implementation

This commit is contained in:
Dave Halter
2018-07-28 14:50:02 +02:00
parent e6f28b06b5
commit b073b05aa0

View File

@@ -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)