copy_docstring

(function from pyomo.contrib.pyros.util)

pyomo.contrib.pyros.util.copy_docstring(source_func)[source]

Create a decorator which copies docstring of a callable source_func to a target callable passed to the decorator.

Returns:

decorator_doc – Decorator of interest.

Return type:

callable