pydocstring.formatters.google

Google Docstring Formatter

pydocstring.formatters.google.class_docstring(parso_class)

Format a google docstring for a class

Only documents attributes, __init__ method args can be documented on the __init__ method

Parameters:parso_class (Class) – The class tree node
Returns:The formatted docstring
Return type:str
pydocstring.formatters.google.function_docstring(parso_function)

Format a google docstring for a function

Parameters:parso_function (Function) – The function tree node
Returns:The formatted docstring
Return type:str
pydocstring.formatters.google.module_docstring(parso_module)

Format a google docstring for a module

Only documents attributes, __init__ method args can be documented on the __init__ method

Parameters:parso_module (Module) – The module tree node
Returns:The formatted docstring
Return type:str