Skip to content

Is it possible to generate dosctring after defining a function? #1494

Open
@castroavila

Description

@castroavila

Hi,

Is it possible to run some command to create the docstring after a function has been defined? Let's suppose I already have defined the function:

def function(a, b=2, c=3):
    """


    """

    .....

And I want to generate the docstring to have:

def function(a, b=2, c=3):
    """Function

    Parameters
    ----------
    a : TODO
    b : TODO, optional
    c : TODO, optional

    Returns
    -------
    TODO

    """
    pass

I have checked other options to generate the docstring, however the style does match the one followed by this plugin.

Best regards,
Manuel

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