dotfiles/vscode/.vscode/extensions/njpwerner.autodocstring-0.6.1/docs/one-line-sphinx.md
Errol Sancaktar ff17c17e23 vscode
2024-06-14 09:31:58 -06:00

343 B

One Line Sphinx Docstring Format

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

    :param int a: _description_
    :param list c: _description_, defaults to [1,2]
    :raises AssertionError: _description_
    :return _type_: _description_
    """
    if a > 10:
        raise AssertionError("a is more than 10")

    return c