@@ -355,15 +355,15 @@ def test_parse_annotation(annotation: Any, module: str, class_name: str, args: t
355
355
# Zero-length tuple remains
356
356
pytest .param (Tuple [()], ":py:data:`~typing.Tuple`" , id = "Tuple-p" ), # noqa: UP006
357
357
# Internal single tuple with simple types is flattened in the output
358
- pytest .param (Tuple [( int ,) ], r":py:data:`~typing.Tuple`\ \[:py:class:`int`]" , id = "Tuple-p-int" ), # noqa: UP006
358
+ pytest .param (Tuple [int ,], r":py:data:`~typing.Tuple`\ \[:py:class:`int`]" , id = "Tuple-p-int" ), # noqa: UP006
359
359
pytest .param (
360
- Tuple [( int , int ) ], # noqa: UP006
360
+ Tuple [int , int ], # noqa: UP006
361
361
r":py:data:`~typing.Tuple`\ \[:py:class:`int`, :py:class:`int`]" ,
362
362
id = "Tuple-p-int-int" , # noqa: RUF100, UP006
363
363
),
364
364
# Ellipsis in single tuple also gets flattened
365
365
pytest .param (
366
- Tuple [( int , ...) ], # noqa: UP006
366
+ Tuple [int , ...], # noqa: UP006
367
367
r":py:data:`~typing.Tuple`\ \[:py:class:`int`, :py:data:`...<Ellipsis>`]" ,
368
368
id = "Tuple-p-Ellipsis" ,
369
369
),
0 commit comments