docformatter removes blank line after last section in docstrings #43
Labels
C: style
Relates to docstring format style (e.g., Google, NumPy, Sphinx)
P: enhancement
Feature that is outside the scope of PEP 257
U: low
A relatively low urgency issue
Milestone
Issue Summary
If a docstring has a summary and a description that consists of at least one section, then there should be a blank line between the last line of the section and the the final
"""
of the docstring.Example
Given the class
SomeClass
below,docformatter
will remove the blank line at the end of the class dosctring, after the "Methods" section. In contrast,pydocstyle
will throw a D413 error if that blank line is removed:D413: Missing blank line after last section ('Methods')
.Is it possible to setup
docformatter
to respect D413?The text was updated successfully, but these errors were encountered: