1
0
forked from VimPlug/jedi

Make sure goto_definitions is no longer used in the main code

This commit is contained in:
Dave Halter
2019-12-20 18:47:04 +01:00
parent dbb61357c3
commit 4bbaec68e8
6 changed files with 19 additions and 21 deletions

View File

@@ -143,7 +143,7 @@ class InferenceState(object):
"""Convenience function"""
return self.project._get_sys_path(self, environment=self.environment, **kwargs)
def goto_definitions(self, context, name):
def infer(self, context, name):
def_ = name.get_definition(import_name_always=True)
if def_ is not None:
type_ = def_.type