Skip to content

Missing 'Returns:' section for multiline function definition #51

@czertyaka

Description

@czertyaka

When generating function docstring note that Returns: section appears only for oneline definitions. It also updates to No Longer Returned: when typed manually and Convert... command triggered.

def foo(arg):
    """Summary

    Args:
        arg (TYPE): Description

    Returns:
        TYPE: Description
    """
    return 1

def foo(
    arg
):
    """Summary

    Args:
        arg (TYPE): Description
    """
    return 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions