summaryrefslogtreecommitdiff
path: root/sphinx/ext/autosummary/generate.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-01-23 23:47:04 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-01-25 00:57:36 +0900
commitecf38edb439cb8dc76d3a31adc5e358c8c859f97 (patch)
tree9f79e3c7e50fd3ce07a4d1f65c752203685418f1 /sphinx/ext/autosummary/generate.py
parentf8fc6075ba317ba694ae4df5227a5358a08df6e3 (diff)
downloadsphinx-git-ecf38edb439cb8dc76d3a31adc5e358c8c859f97.tar.gz
Close #7051: autodoc: Support instance variables without defaults (PEP-526)
Diffstat (limited to 'sphinx/ext/autosummary/generate.py')
-rw-r--r--sphinx/ext/autosummary/generate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/autosummary/generate.py b/sphinx/ext/autosummary/generate.py
index cf7f52f33..57082c943 100644
--- a/sphinx/ext/autosummary/generate.py
+++ b/sphinx/ext/autosummary/generate.py
@@ -71,13 +71,13 @@ def setup_documenters(app: Any) -> None:
ModuleDocumenter, ClassDocumenter, ExceptionDocumenter, DataDocumenter,
FunctionDocumenter, MethodDocumenter, AttributeDocumenter,
InstanceAttributeDocumenter, DecoratorDocumenter, PropertyDocumenter,
- SlotsAttributeDocumenter,
+ SlotsAttributeDocumenter, DataDeclarationDocumenter,
)
documenters = [
ModuleDocumenter, ClassDocumenter, ExceptionDocumenter, DataDocumenter,
FunctionDocumenter, MethodDocumenter, AttributeDocumenter,
InstanceAttributeDocumenter, DecoratorDocumenter, PropertyDocumenter,
- SlotsAttributeDocumenter,
+ SlotsAttributeDocumenter, DataDeclarationDocumenter,
] # type: List[Type[Documenter]]
for documenter in documenters:
app.registry.add_documenter(documenter.objtype, documenter)