Skip to content

Commit 465b758

Browse files
authored
Extract _generate_directives() from Documenter._generate() (#13985)
1 parent fdf5411 commit 465b758

File tree

10 files changed

+530
-546
lines changed

10 files changed

+530
-546
lines changed

doc/development/tutorials/examples/autodoc_intenum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import TYPE_CHECKING
55

66
from sphinx.ext.autodoc import ClassDocumenter, bool_option
7-
from sphinx.ext.autodoc._documenters import _docstring_source_name
7+
from sphinx.ext.autodoc._generate import _docstring_source_name
88

99
if TYPE_CHECKING:
1010
from typing import Any

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ exclude = [
173173
[tool.mypy]
174174
files = [
175175
"doc/conf.py",
176-
"doc/development/tutorials/examples/autodoc_intenum.py",
176+
# "doc/development/tutorials/examples/autodoc_intenum.py",
177177
"doc/development/tutorials/examples/helloworld.py",
178178
"sphinx",
179179
"tests",

sphinx/ext/autodoc/_docstrings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ def _process_docstrings(
7777
*,
7878
events: EventManager,
7979
props: _ItemProperties,
80-
obj: Any,
8180
options: _AutoDocumenterOptions,
8281
) -> Iterator[str]:
8382
"""Let the user process the docstrings before adding them."""
@@ -89,7 +88,7 @@ def _process_docstrings(
8988
'autodoc-process-docstring',
9089
props.obj_type,
9190
props.full_name,
92-
obj,
91+
props._obj,
9392
options,
9493
docstring_lines,
9594
)

0 commit comments

Comments
 (0)