Skip to content

Commit 7d05936

Browse files
committed
autodoc: Restore some missing exports
1 parent b745a11 commit 7d05936

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Release 9.0.3 (in development)
44
Bugs fixed
55
----------
66

7+
* #14142: autodoc: Restore some missing exports in :mod:`!sphinx.ext.autodoc`.
8+
Patch by Adam Turner.
79

810
Release 9.0.2 (released Dec 03, 2025)
911
=====================================

sphinx/ext/autodoc/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
import sphinx
1313
from sphinx.config import ENUM
1414
from sphinx.ext.autodoc._directive import AutodocDirective
15+
from sphinx.ext.autodoc._dynamic._importer import (
16+
_import_module as import_module,
17+
)
1518
from sphinx.ext.autodoc._event_listeners import between, cut_lines
1619
from sphinx.ext.autodoc._legacy_class_based._directive_options import (
1720
Options,
@@ -60,6 +63,8 @@
6063
SUPPRESS,
6164
UNINITIALIZED_ATTR,
6265
)
66+
from sphinx.ext.autodoc.importer import get_class_members, import_object
67+
from sphinx.ext.autodoc.mock import ismock, mock, undecorate
6368
from sphinx.ext.autodoc.typehints import _merge_typehints
6469

6570
if TYPE_CHECKING:
@@ -123,6 +128,12 @@
123128
'UninitializedInstanceAttributeMixin',
124129
'autodoc_attrgetter',
125130
'Documenter',
131+
'get_class_members',
132+
'import_module',
133+
'import_object',
134+
'ismock',
135+
'mock',
136+
'undecorate',
126137
)
127138

128139

0 commit comments

Comments
 (0)