Skip to content

Commit be2b083

Browse files
Re-export more names in sphinx.domains.python (#12297)
Co-authored-by: Adam Turner <[email protected]>
1 parent 45fab85 commit be2b083

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Bugs fixed
66

77
* #12295: Re-export all AST types in the C and C++ domains.
88
Patch by Adam Turner.
9+
* #12295: Re-export various objects from ``sphinx.domains.python._annotations``
10+
in ``sphinx.domains.python``.
11+
Patch by Jacob Chesslo and Adam Turner.
912

1013
Release 7.3.5 (released Apr 17, 2024)
1114
=====================================

sphinx/domains/python/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@
3838

3939
# re-export objects for backwards compatibility
4040
# xref https://github.com/sphinx-doc/sphinx/issues/12295
41+
from sphinx.domains.python._annotations import ( # NoQA: F401
42+
_parse_arglist, # for sphinx-immaterial
43+
type_to_xref,
44+
)
4145
from sphinx.domains.python._object import ( # NoQA: F401
4246
PyField,
4347
PyGroupedField,
4448
PyTypedField,
4549
PyXrefMixin,
46-
py_sig_re,
4750
)
4851

4952
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)