From be2b08362cfa32dbfbb1263610ae028262dc4b27 Mon Sep 17 00:00:00 2001 From: Jacob Chesslo <55557420+JacobChesslo@users.noreply.github.com> Date: Wed, 17 Apr 2024 10:49:25 -0700 Subject: [PATCH] Re-export more names in ``sphinx.domains.python`` (#12297) Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> --- CHANGES.rst | 3 +++ sphinx/domains/python/__init__.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 73490ffcc88..7e4aabba4c3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,9 @@ Bugs fixed * #12295: Re-export all AST types in the C and C++ domains. Patch by Adam Turner. +* #12295: Re-export various objects from ``sphinx.domains.python._annotations`` + in ``sphinx.domains.python``. + Patch by Jacob Chesslo and Adam Turner. Release 7.3.5 (released Apr 17, 2024) ===================================== diff --git a/sphinx/domains/python/__init__.py b/sphinx/domains/python/__init__.py index 2c61cb84b68..674b59dc393 100644 --- a/sphinx/domains/python/__init__.py +++ b/sphinx/domains/python/__init__.py @@ -38,12 +38,15 @@ # re-export objects for backwards compatibility # xref https://github.com/sphinx-doc/sphinx/issues/12295 +from sphinx.domains.python._annotations import ( # NoQA: F401 + _parse_arglist, # for sphinx-immaterial + type_to_xref, +) from sphinx.domains.python._object import ( # NoQA: F401 PyField, PyGroupedField, PyTypedField, PyXrefMixin, - py_sig_re, ) logger = logging.getLogger(__name__)