mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-24 05:07:05 +08:00
Trying to use prefer type annotations if they are available
This commit is contained in:
1 parent
403cf02c65
commit
faba29a42b
4 files changed
+13
-4
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user