Skip to content

Commit

Permalink
Re-export various names in sphinx.domains.python (#12296)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
  • Loading branch information
JacobChesslo and AA-Turner authored Apr 17, 2024
1 parent 943f6fb commit 37df4ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Release 7.3.5 (in development)
Bugs fixed
----------

* #12295: Re-export various objects from ``sphinx.domains.python._object``
in ``sphinx.domains.python``.
Patch by Jacob Chesslo and Adam Turner.

Release 7.3.4 (released Apr 17, 2024)
=====================================
Expand Down
10 changes: 10 additions & 0 deletions sphinx/domains/python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@
from sphinx.environment import BuildEnvironment
from sphinx.util.typing import ExtensionMetadata, OptionSpec

# re-export objects for backwards compatibility
# xref https://github.com/sphinx-doc/sphinx/issues/12295
from sphinx.domains.python._object import ( # NoQA: F401
PyField,
PyGroupedField,
PyTypedField,
PyXrefMixin,
py_sig_re,
)

logger = logging.getLogger(__name__)

pairindextypes = {
Expand Down

0 comments on commit 37df4ce

Please sign in to comment.