Skip to content

Docstring formatting does not apply to module docstrings #4094

@JelleZijlstra

Description

@JelleZijlstra

#4060 (comment) made me look into unifying some of our docstring logic. I discovered this bug:

"""

has trailing space   

"""

I would expect Black to remove the trailing space, which it does for class and function docstrings, but it doesn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    F: docstringsHow we format docstringsT: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions