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

372 B

Google Docstring Format

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

    Args:
        a (int): _description_
        c (list, optional): _description_. Defaults to [1,2].

    Raises:
        AssertionError: _description_

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

    return c