def _doc_params(**kwds):
    '    Docstrings should start with "" in the first line for proper formatting.\n    '

    def dec(obj):
        obj.__orig_doc__ = obj.__doc__
        obj.__doc__ = dedent(obj.__doc__).format_map(kwds)
        return obj
    return dec
Docstrings should start with "" in the first line for proper formatting.
def _doc_params(**kwds):
    '    \n    '

    def dec(obj):
        obj.__orig_doc__ = obj.__doc__
        obj.__doc__ = dedent(obj.__doc__).format_map(kwds)
        return obj
    return dec