SublimeAutoDocstring icon indicating copy to clipboard operation
SublimeAutoDocstring copied to clipboard

Missing 'Returns:' section for multiline function definition

Open czertyaka opened this issue 3 years ago • 1 comments

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

czertyaka avatar Aug 20 '22 12:08 czertyaka

I have the same issue. Using this trick from this fork doesn't seem to work either:

https://github.com/dextreem/SublimeAutoDocstring/commit/2b986fe8754a36434b10da5f58b07f07da316685

kinoute avatar Sep 19 '22 09:09 kinoute