Re-export more names in `sphinx.domains.python` (#12297)

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
This commit is contained in:
Jacob Chesslo
2024-04-17 10:49:25 -07:00
committed by GitHub
parent 45fab85295
commit be2b08362c
2 changed files with 7 additions and 1 deletions

View File

@@ -6,6 +6,9 @@ Bugs fixed
* #12295: Re-export all AST types in the C and C++ domains. * #12295: Re-export all AST types in the C and C++ domains.
Patch by Adam Turner. 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) Release 7.3.5 (released Apr 17, 2024)
===================================== =====================================

View File

@@ -38,12 +38,15 @@ if TYPE_CHECKING:
# re-export objects for backwards compatibility # re-export objects for backwards compatibility
# xref https://github.com/sphinx-doc/sphinx/issues/12295 # 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 from sphinx.domains.python._object import ( # NoQA: F401
PyField, PyField,
PyGroupedField, PyGroupedField,
PyTypedField, PyTypedField,
PyXrefMixin, PyXrefMixin,
py_sig_re,
) )
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)