From ab4e415aece2d701262e2a75fa637e0da734a0ef Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 1 Sep 2018 12:36:05 +0200 Subject: [PATCH] Actually make nested stubs usable --- jedi/plugins/typeshed.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jedi/plugins/typeshed.py b/jedi/plugins/typeshed.py index 2f17677c..239791a8 100644 --- a/jedi/plugins/typeshed.py +++ b/jedi/plugins/typeshed.py @@ -138,7 +138,8 @@ class TypeshedPlugin(BasePlugin): if len(import_names) == 1: map_ = self._cache_stub_file_map(evaluator.grammar.version_info) elif isinstance(parent_module_context, StubModuleContext): - map_ = _merge_create_stub_map(parent_module_context.py__path__()) + path = parent_module_context.stub_context.py__path__() + map_ = _merge_create_stub_map(path) if map_ is not None: path = map_.get(import_name)