spadarian / docblock-python

Atom plugin to insert documentation blocks for python functions
GNU General Public License v2.0
22 stars 9 forks source link

Support trailing commas #22

Closed spadarian closed 5 years ago

spadarian commented 6 years ago

There is a bug in the parsing when a trailing comma is present in the definition.

E.g.:

def foo(x,):
    """Short summary.

    Parameters
    ----------
    x : type
        Description of parameter `x`.
     : type
        Description of parameter ``.

    Returns
    -------
    type
        Description of returned object.

    """
    pass