1
0
forked from VimPlug/jedi

Trying to use prefer type annotations if they are available

This commit is contained in:
Dave Halter
2018-08-05 00:36:11 +02:00
parent 403cf02c65
commit faba29a42b
4 changed files with 13 additions and 4 deletions

View File

@@ -74,3 +74,7 @@ def test_method(Script):
context = def_._name._context
assert isinstance(context, BoundMethod), context
assert isinstance(context._function, typeshed.FunctionStubContext), context
def_, = Script(code + '()').goto_definitions()
context = def_._name._context
assert isinstance(context, BoundMethod), context