Skip to content

Commit 37df4ce

Browse files
Re-export various names in sphinx.domains.python (#12296)
Co-authored-by: Adam Turner <[email protected]>
1 parent 943f6fb commit 37df4ce

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGES.rst

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Release 7.3.5 (in development)
44
Bugs fixed
55
----------
66

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

811
Release 7.3.4 (released Apr 17, 2024)
912
=====================================

sphinx/domains/python/__init__.py

+10
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@
3636
from sphinx.environment import BuildEnvironment
3737
from sphinx.util.typing import ExtensionMetadata, OptionSpec
3838

39+
# re-export objects for backwards compatibility
40+
# xref https://github.com/sphinx-doc/sphinx/issues/12295
41+
from sphinx.domains.python._object import ( # NoQA: F401
42+
PyField,
43+
PyGroupedField,
44+
PyTypedField,
45+
PyXrefMixin,
46+
py_sig_re,
47+
)
48+
3949
logger = logging.getLogger(__name__)
4050

4151
pairindextypes = {

0 commit comments

Comments
 (0)