solorice/vscodium/extensions/njpwerner.autodocstring-0.6.1/docs/pep257.md
2022-04-28 21:17:01 +03:00

373 B

Pep257 Docstring Format

def abc(a: int, c = [1,2]):
    """_summary_

    Arguments:
        a -- _description_

    Keyword Arguments:
        c -- _description_ (default: {[1,2]})

    Raises:
        AssertionError: _description_

    Returns:
        _description_
    """
    if a > 10:
        raise AssertionError("a is more than 10")

    return c