diff --git a/tests/test_ext_autodoc_configs.py b/tests/test_ext_autodoc_configs.py index dd3ed1a26..fdb82b1b9 100644 --- a/tests/test_ext_autodoc_configs.py +++ b/tests/test_ext_autodoc_configs.py @@ -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', '',