macroeco.misc.inherit_docstring_from¶
- macroeco.misc.inherit_docstring_from(cls)¶
This decorator modifies the decorated function’s docstring by replacing occurrences of ‘%(super)s’ with the docstring of the method of the same name from the class cls.
If the decorated method has no docstring, it is simply given the docstring of cls method.
Extracted from scipy.misc.doccer.