Skip to content

Commit 15d58bc

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ea2fb8e commit 15d58bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_sphinx_autodoc_typehints.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,15 +355,15 @@ def test_parse_annotation(annotation: Any, module: str, class_name: str, args: t
355355
# Zero-length tuple remains
356356
pytest.param(Tuple[()], ":py:data:`~typing.Tuple`", id="Tuple-p"), # noqa: UP006
357357
# 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
359359
pytest.param(
360-
Tuple[(int, int)], # noqa: UP006
360+
Tuple[int, int], # noqa: UP006
361361
r":py:data:`~typing.Tuple`\ \[:py:class:`int`, :py:class:`int`]",
362362
id="Tuple-p-int-int", # noqa: RUF100, UP006
363363
),
364364
# Ellipsis in single tuple also gets flattened
365365
pytest.param(
366-
Tuple[(int, ...)], # noqa: UP006
366+
Tuple[int, ...], # noqa: UP006
367367
r":py:data:`~typing.Tuple`\ \[:py:class:`int`, :py:data:`...<Ellipsis>`]",
368368
id="Tuple-p-Ellipsis",
369369
),

0 commit comments

Comments
 (0)