Skip to content

Commit

Permalink
Merge pull request #6457 from tk0miya/6455_napoleon_ignores_properties
Browse files Browse the repository at this point in the history
Fix #6455: napoleon: docstrings for properties are not processed
  • Loading branch information
tk0miya committed Jun 9, 2019
2 parents dc540e2 + 4945628 commit 783de00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Bugs fixed
immediately preceding section title by pagebreak
* #6448: autodoc: crashed when autodocumenting classes with ``__slots__ = None``
* #6452: autosummary: crashed when generating document of properties
* #6455: napoleon: docstrings for properties are not processed

Testing
--------
Expand Down
2 changes: 1 addition & 1 deletion sphinx/ext/napoleon/docstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def _parse(self):
# type: () -> None
self._parsed_lines = self._consume_empty()

if self._name and (self._what == 'attribute' or self._what == 'data'):
if self._name and self._what in ('attribute', 'data', 'property'):
# Implicit stop using StopIteration no longer allowed in
# Python 3.7; see PEP 479
res = [] # type: List[str]
Expand Down

0 comments on commit 783de00

Please sign in to comment.