1
0
forked from VimPlug/jedi

Fix a goto case with nested pyi files

This commit is contained in:
Dave Halter
2019-12-15 17:37:24 +01:00
parent 35442eff81
commit 6e2a76feb9
5 changed files with 56 additions and 36 deletions

View File

@@ -107,12 +107,9 @@ class InferenceState(object):
self.reset_recursion_limitations()
def import_module(self, import_names, parent_module_value=None,
sys_path=None, prefer_stubs=True):
if sys_path is None:
sys_path = self.get_sys_path()
return imports.import_module(self, import_names, parent_module_value,
sys_path, prefer_stubs=prefer_stubs)
def import_module(self, import_names, sys_path=None, prefer_stubs=True):
return imports.import_module_by_names(
self, import_names, sys_path, prefer_stubs=prefer_stubs)
@staticmethod
@plugin_manager.decorate()