1
0
forked from VimPlug/jedi

Add another test for signature annotations

This commit is contained in:
Dave Halter
2019-08-02 11:26:26 +02:00
parent d58bbce24f
commit a64ef2759c

View File

@@ -13,6 +13,9 @@ _tuple_code = 'from typing import Tuple\ndef f(x: Tuple[int]): ...\nf'
(_tuple_code, ['Tuple: _SpecialForm = ...'], True),
(_tuple_code, ['Tuple: _SpecialForm = ...'], False),
('x=str\ndef f(p: x): ...\nx=int\nf', ['instance int'], True),
('def f(*args, **kwargs): ...\nf', [None, None], False),
('def f(*args: int, **kwargs: str): ...\nf', ['class int', 'class str'], False),
]
)
def test_param_annotation(Script, code, expected_params, execute_annotation):