forked from VimPlug/jedi
goto_assignment -> goto everywhere where it was left
This commit is contained in:
@@ -64,11 +64,11 @@ def test_infer_and_goto(Script, code, full_name, has_stub, has_python, way,
|
||||
|
||||
if way == 'direct':
|
||||
if type_ == 'goto':
|
||||
defs = s.goto_assignments(follow_imports=True, **kwargs)
|
||||
defs = s.goto(follow_imports=True, **kwargs)
|
||||
else:
|
||||
defs = s.infer(**kwargs)
|
||||
else:
|
||||
goto_defs = s.goto_assignments(
|
||||
goto_defs = s.goto(
|
||||
# Prefering stubs when we want to go to python and vice versa
|
||||
prefer_stubs=not (prefer_stubs or only_stubs),
|
||||
follow_imports=True,
|
||||
|
||||
Reference in New Issue
Block a user