mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
refactored Definition class. therefore the 'goto' function now uses it, too
This commit is contained in:
@@ -110,6 +110,7 @@ def run_goto_test(correct, source, line_nr, line, path):
|
||||
else:
|
||||
lst = []
|
||||
for r in result:
|
||||
r = r.definition
|
||||
if isinstance(r, evaluate.InstanceElement):
|
||||
r = r.var
|
||||
if isinstance(r, (evaluate.Class, evaluate.Instance)):
|
||||
|
||||
Reference in New Issue
Block a user