From a50d47300b3118d7913984bb5dc018d8d3eb0967 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Sat, 28 Mar 2020 09:52:56 +0100 Subject: Add posonlyargs_annotations to Arguments.as_string() --- tests/unittest_scoped_nodes.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/unittest_scoped_nodes.py b/tests/unittest_scoped_nodes.py index 8dd31b8d..0c99cd13 100644 --- a/tests/unittest_scoped_nodes.py +++ b/tests/unittest_scoped_nodes.py @@ -1811,6 +1811,12 @@ def test_metaclass_cannot_infer_call_yields_an_instance(): """ def __init__(self, other=(), /, **kw): pass + """ + ), + textwrap.dedent( + """ + def __init__(self: int, other: float, /, **kw): + pass """ ), ], -- cgit v1.2.1