We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18cc082 commit daace2aCopy full SHA for daace2a
sphinx/ext/autodoc/_docstrings.py
@@ -244,7 +244,7 @@ def _get_docstring_lines(
244
return []
245
return [prepare_docstring(docstring, tab_width)]
246
247
- if props.obj_type == 'attribute':
+ if props.obj_type in {'attribute', 'type'}:
248
# Check the attribute has a docstring-comment
249
comment = _get_attribute_comment(
250
parent=parent, obj_path=props.parts, attrname=props.parts[-1]
0 commit comments