Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Allow blank line between docstring and coroutine definition #466

Closed
rytilahti opened this issue Apr 25, 2020 · 2 comments
Closed

Allow blank line between docstring and coroutine definition #466

rytilahti opened this issue Apr 25, 2020 · 2 comments

Comments

@rytilahti
Copy link

#426 fixed D202: No blank lines allowed after function docstring errors for blackified inner functions, but it seems this was only a partial fix and D202 is still being reported for async defed inner functions.

Example code based on #361 (comment):

"""foo."""

def spam():
    """Spam."""

    def ham():
        return "ham"

    return "spam"


def async_spam():
    """Async spam."""

    async def ham():
        return "ham"

    return "spam"

produces the following:

/tmp/test.py:13 in public function `async_spam`:
        D202: No blank lines allowed after function docstring (found 1)
@sambhav
Copy link
Member

sambhav commented May 3, 2020

This is fixed now.

@sambhav sambhav closed this as completed May 3, 2020
@sambhav
Copy link
Member

sambhav commented May 3, 2020

Related changes #467

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants