function of source

    **kwargs: str |[str,[str]] ,

Decorator for composing docstrings.

This allows components of docstrings which are often repeated to be specified in a single place. Values provided to this function should have string keys and string or list values. Keys are found in curly brackets in the wrapped functions docstring and their values are substituted with proper indentation.


A function’s docstring can be accessed via the __docs__ attribute.


from import compose_docstring

def example_function():
    Some useful description

    The following line will be the string '10':