@@ -98,7 +98,7 @@ def test_parse_annotation(annotation, module, class_name, args):
98
98
@pytest .mark .parametrize ('annotation, expected_result' , [
99
99
(str , ':py:class:`str`' ),
100
100
(int , ':py:class:`int`' ),
101
- (type (None ), '`` None` `' ),
101
+ (type (None ), ':py:obj:` None`' ),
102
102
(type , ':py:class:`type`' ),
103
103
(Type , ':py:class:`~typing.Type`' ),
104
104
(Type [A ], ':py:class:`~typing.Type`\\ [:py:class:`~%s.A`]' % __name__ ),
@@ -138,7 +138,7 @@ def test_parse_annotation(annotation, module, class_name, args):
138
138
(Callable [[int , str ], bool ], ':py:data:`~typing.Callable`\\ [\\ [:py:class:`int`, '
139
139
':py:class:`str`], :py:class:`bool`]' ),
140
140
(Callable [[int , str ], None ], ':py:data:`~typing.Callable`\\ [\\ [:py:class:`int`, '
141
- ':py:class:`str`], `` None` `]' ),
141
+ ':py:class:`str`], :py:obj:` None`]' ),
142
142
(Callable [[T ], T ], ':py:data:`~typing.Callable`\\ [\\ [\\ ~T], \\ ~T]' ),
143
143
(Pattern , ':py:class:`~typing.Pattern`' ),
144
144
(Pattern [str ], ':py:class:`~typing.Pattern`\\ [:py:class:`str`]' ),
0 commit comments