Skip to content

Commit 335369e

Browse files
committed
Undo Ruff changes
1 parent 72a0385 commit 335369e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_sphinx_autodoc_typehints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def test_parse_annotation(annotation: Any, module: str, class_name: str, args: t
257257
id="Union-str-Any",
258258
),
259259
pytest.param(
260-
Optional[str],
260+
Optional[str], # noqa: UP007
261261
r":py:data:`~typing.Optional`\ \[:py:class:`str`]",
262262
id="Optional-str",
263263
),
@@ -267,7 +267,7 @@ def test_parse_annotation(annotation: Any, module: str, class_name: str, args: t
267267
id="Optional-str-None",
268268
),
269269
pytest.param(
270-
Optional[str | bool],
270+
Optional[str | bool], # noqa: UP007
271271
r":py:data:`~typing.Union`\ \[:py:class:`str`, :py:class:`bool`, :py:obj:`None`]",
272272
id="Optional-Union-str-bool",
273273
),

0 commit comments

Comments
 (0)