fix(checker): allow whitespace before inner functions and class by johanfleury · Pull Request #426 · PyCQA/pydocstyle (original) (raw)
Changes D202: ("No blank lines allowed after function docstring") to allow space below function docstrings with inner functions.
i.e. allows:
def outer():
"""Valid docstring."""
def inner():
pass
return passSee comment from @cdeil in #361.
2 tasks
Avoid DeprecationWarning ("invalid escape sequence").
daviddavis pushed a commit to daviddavis/pulp_ansible that referenced this pull request
daviddavis pushed a commit to daviddavis/plugin_template that referenced this pull request
daviddavis pushed a commit to daviddavis/pulp_ansible that referenced this pull request
daviddavis pushed a commit to daviddavis/pulp_ansible that referenced this pull request
rytilahti added a commit to rytilahti/python-kasa that referenced this pull request
This was referenced
Apr 25, 2020
basnijholt pushed a commit to python-kasa/python-kasa that referenced this pull request
peterjc added a commit to biopython/biopython that referenced this pull request
jcristau added a commit to jcristau/scriptworker-scripts that referenced this pull request
Once upon a time black and pydocstyle disagreed on blank lines before nested functions, and a comment would appease them both. Since then, the latter has been changed to not complain about a blank line (PyCQA/pydocstyle#426), and the former now complains about the missing blank line even with the comment (psf/black#3302).
jcristau added a commit to jcristau/scriptworker-scripts that referenced this pull request
Once upon a time black and pydocstyle disagreed on blank lines before nested functions, and a comment would appease them both. Since then, the latter has been changed to not complain about a blank line (PyCQA/pydocstyle#426), and the former now complains about the missing blank line even with the comment (psf/black#3302).
jcristau added a commit to jcristau/scriptworker-scripts that referenced this pull request
Once upon a time black and pydocstyle disagreed on blank lines before nested functions, and a comment would appease them both. Since then, the latter has been changed to not complain about a blank line (PyCQA/pydocstyle#426), and the former now complains about the missing blank line even with the comment (psf/black#3302).
jcristau added a commit to jcristau/scriptworker-scripts that referenced this pull request
Once upon a time black and pydocstyle disagreed on blank lines before nested functions, and a comment would appease them both. Since then, the latter has been changed to not complain about a blank line (PyCQA/pydocstyle#426), and the former now complains about the missing blank line even with the comment (psf/black#3302).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})