1
0
forked from VimPlug/jedi

Fix call signatures, use stubs if possible

This commit is contained in:
Dave Halter
2019-05-11 12:44:20 +02:00
parent 079783e3a1
commit 8b1d4a7824
3 changed files with 11 additions and 5 deletions

View File

@@ -263,11 +263,11 @@ class Evaluator(object):
def goto_definitions(self, context, name):
# We don't want stubs here we want the actual contexts, if possible.
return try_stubs_to_actual_context_set(
self._goto_definitions(context, name),
self.goto_stub_definitions(context, name),
prefer_stub_to_compiled=True
)
def _goto_definitions(self, context, name):
def goto_stub_definitions(self, context, name):
def_ = name.get_definition(import_name_always=True)
if def_ is not None:
type_ = def_.type