1
0
forked from VimPlug/jedi

infer_state -> inference_state

This commit is contained in:
Dave Halter
2019-08-16 11:44:30 +02:00
parent fffb39227e
commit 03920502c4
60 changed files with 727 additions and 727 deletions

View File

@@ -1,9 +1,9 @@
from textwrap import dedent
def get_definition_and_infer_state(Script, source):
def get_definition_and_inference_state(Script, source):
first, = Script(dedent(source)).goto_definitions()
return first._name._value, first._infer_state
return first._name._value, first._inference_state
def test_function_execution(Script):
@@ -16,7 +16,7 @@ def test_function_execution(Script):
def x():
return str()
x"""
func, infer_state = get_definition_and_infer_state(Script, s)
func, inference_state = get_definition_and_inference_state(Script, s)
# Now just use the internals of the result (easiest way to get a fully
# usable function).
# Should return the same result both times.
@@ -29,6 +29,6 @@ def test_class_mro(Script):
class X(object):
pass
X"""
cls, infer_state = get_definition_and_infer_state(Script, s)
cls, inference_state = get_definition_and_inference_state(Script, s)
mro = cls.py__mro__()
assert [c.name.string_name for c in mro] == ['X', 'object']