nip.utils.runtime_module.set_docstring

Contents

nip.utils.runtime_module.set_docstring#

nip.utils.runtime_module.set_docstring(doc)[source]#

A simple decorator to set docstrings.

Parameters:

doc – The docstring to tie to the function.

Example:

@set_docstring('This is a docstring')
def myfunc(x):
    pass