mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-07 08:04:32 +08:00
Don't use goto_definitions anymore, use infer
This commit is contained in:
1 parent
4bbaec68e8
commit
d7d9c9642a
30 files changed
+131
-137
No files matched your search
@@ -2,7 +2,7 @@ from textwrap import dedent
|
||||
|
||||
|
||||
def get_definition_and_inference_state(Script, source):
|
||||
first, = Script(dedent(source)).goto_definitions()
|
||||
first, = Script(dedent(source)).infer()
|
||||
return first._name._value, first._inference_state
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user