fix(checker): allow whitespace before inner functions and class by johanfleury · Pull Request #426 · PyCQA/pydocstyle (original) (raw)

@lewisacidic @johanfleury

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 pass

See comment from @cdeil in #361.

@johanfleury mentioned this pull request

Oct 24, 2019

2 tasks

Code0x58

Code0x58

@johanfleury

Avoid DeprecationWarning ("invalid escape sequence").

Nurdok

@Nurdok

daviddavis pushed a commit to daviddavis/pulp_ansible that referenced this pull request

Dec 13, 2019

daviddavis pushed a commit to daviddavis/plugin_template that referenced this pull request

Dec 13, 2019

daviddavis pushed a commit to daviddavis/pulp_ansible that referenced this pull request

Dec 13, 2019

daviddavis pushed a commit to daviddavis/pulp_ansible that referenced this pull request

Dec 13, 2019

rytilahti added a commit to rytilahti/python-kasa that referenced this pull request

Apr 25, 2020

@rytilahti

This was referenced

Apr 25, 2020

basnijholt pushed a commit to python-kasa/python-kasa that referenced this pull request

Apr 25, 2020

@rytilahti

peterjc added a commit to biopython/biopython that referenced this pull request

May 9, 2020

@peterjc

jcristau added a commit to jcristau/scriptworker-scripts that referenced this pull request

Feb 16, 2023

@jcristau

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

Feb 17, 2023

@jcristau

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

Feb 20, 2023

@jcristau

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

Mar 6, 2023

@jcristau

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 }})