From a64ef2759c97b4f0a8000187ff108092787b0c07 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 2 Aug 2019 11:26:26 +0200 Subject: [PATCH] Add another test for signature annotations --- test/test_api/test_signatures.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_api/test_signatures.py b/test/test_api/test_signatures.py index fc908621..628c5128 100644 --- a/test/test_api/test_signatures.py +++ b/test/test_api/test_signatures.py @@ -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):