mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Don't use goto_definitions anymore, use infer
This commit is contained in:
@@ -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