Skip to content

Empty lines at the end of a docstring are not allowed on Numpydoc #450

@germa89

Description

@germa89

Empty lines at the end of a docstring are not allowed on Numpydoc

For instance this docstring:

def my_func() -> str:
    """This is a function.

    Returns
    -------
    str
        A greeting message.
    
    Notes
    -----
    **The next line should not be empty nor exist.**

    """
    return "Hello"

Because of GL02

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions