Skip to content

Commit a431635

Browse files
committed
Add test
1 parent 856f612 commit a431635

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_annotationlib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,9 @@ def test_stringized_annotations_with_star_unpack(self):
885885
def f(*args: "*tuple[int, ...]"): ...
886886
self.assertEqual(get_annotations(f, eval_str=True),
887887
{'args': (*tuple[int, ...],)[0]})
888+
def f(*args: " *tuple[int, ...]"): ...
889+
self.assertEqual(get_annotations(f, eval_str=True),
890+
{'args': (*tuple[int, ...],)[0]})
888891

889892

890893
def test_stringized_annotations_on_wrapper(self):

0 commit comments

Comments
 (0)