Skip to content

Commit 7e0f2f1

Browse files
committed
Fixed the failing tests
1 parent 7ad7b20 commit 7e0f2f1

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
@@ -127,14 +127,14 @@ def test_parse_annotation(annotation, module, class_name, args):
127127
(Union[str, bool], ':py:data:`~typing.Union`\\[:py:class:`str`, '
128128
':py:class:`bool`]'),
129129
(Union[str, bool, None], ':py:data:`~typing.Union`\\[:py:class:`str`, '
130-
':py:class:`bool`, ``None``]'),
130+
':py:class:`bool`, :py:obj:`None`]'),
131131
pytest.param(Union[str, Any], ':py:data:`~typing.Union`\\[:py:class:`str`, '
132132
':py:data:`~typing.Any`]',
133133
marks=pytest.mark.skipif((3, 5, 0) <= sys.version_info[:3] <= (3, 5, 2),
134134
reason='Union erases the str on 3.5.0 -> 3.5.2')),
135135
(Optional[str], ':py:data:`~typing.Optional`\\[:py:class:`str`]'),
136136
(Optional[Union[str, bool]], ':py:data:`~typing.Union`\\[:py:class:`str`, '
137-
':py:class:`bool`, ``None``]'),
137+
':py:class:`bool`, :py:obj:`None`]'),
138138
(Callable, ':py:data:`~typing.Callable`'),
139139
(Callable[..., int], ':py:data:`~typing.Callable`\\[..., :py:class:`int`]'),
140140
(Callable[[int], int], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`], '

0 commit comments

Comments
 (0)