test: Prepend "~typing" to the result of autodata

The default setting has been changed since 5.0.
This commit is contained in:
Takeshi KOMIYA 2022-05-08 00:44:26 +09:00
parent 7134317e49
commit d5e76d69e8

View File

@ -1219,7 +1219,7 @@ def test_autodoc_type_aliases(app):
'',
'.. py:data:: variable3',
' :module: target.autodoc_type_aliases',
' :type: Optional[int]',
' :type: ~typing.Optional[int]',
'',
' docstring',
'',
@ -1290,7 +1290,7 @@ def test_autodoc_type_aliases(app):
'',
'.. py:data:: variable3',
' :module: target.autodoc_type_aliases',
' :type: Optional[myint]',
' :type: ~typing.Optional[myint]',
'',
' docstring',
'',