From 24e110d0ae2629398a2e1503f23a5d40f8ed2ade Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Thu, 23 Jan 2025 03:40:42 +0000 Subject: [PATCH] fixup! Add further types to ``_INVALID_BUILTIN_CLASSES`` --- tests/test_extensions/test_ext_autodoc.py | 2 +- tests/test_extensions/test_ext_autodoc_configs.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_extensions/test_ext_autodoc.py b/tests/test_extensions/test_ext_autodoc.py index 057f732f541..afbcb14de82 100644 --- a/tests/test_extensions/test_ext_autodoc.py +++ b/tests/test_extensions/test_ext_autodoc.py @@ -2588,7 +2588,7 @@ def test_autodoc_TYPE_CHECKING(app): '', ' .. py:attribute:: Foo.attr1', ' :module: target.TYPE_CHECKING', - ' :type: ~_io.StringIO', + ' :type: ~io.StringIO', '', '', '.. py:function:: spam(ham: ~collections.abc.Iterable[str]) -> tuple[~gettext.NullTranslations, bool]', diff --git a/tests/test_extensions/test_ext_autodoc_configs.py b/tests/test_extensions/test_ext_autodoc_configs.py index 02ef26b307f..f56948c3d23 100644 --- a/tests/test_extensions/test_ext_autodoc_configs.py +++ b/tests/test_extensions/test_ext_autodoc_configs.py @@ -1356,7 +1356,7 @@ def test_autodoc_type_aliases(app): ' docstring', '', '', - '.. py:function:: read(r: ~_io.BytesIO) -> ~_io.StringIO', + '.. py:function:: read(r: ~io.BytesIO) -> ~io.StringIO', ' :module: target.autodoc_type_aliases', '', ' docstring', @@ -1429,7 +1429,7 @@ def test_autodoc_type_aliases(app): ' docstring', '', '', - '.. py:function:: read(r: ~_io.BytesIO) -> my.module.StringIO', + '.. py:function:: read(r: ~io.BytesIO) -> my.module.StringIO', ' :module: target.autodoc_type_aliases', '', ' docstring',