mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-24 18:47:05 +08:00
refactored Definition class. therefore the 'goto' function now uses it, too
This commit is contained in:
1 parent
fcf3e80d06
commit
e8d4e9a13a
2 files changed
+34
-22
No files matched your search
@@ -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