bundles / scipy latest / scipy / _lib / doccer / replace_notes_in_docstring
function
scipy._lib.doccer:replace_notes_in_docstring
source: /scipy/_lib/doccer.py :180
Signature
def replace_notes_in_docstring ( cls : object , notes : str ) → Decorator Summary
This decorator replaces the decorated function's docstring with the docstring from corresponding method in cls. It replaces the 'Notes' section of that docstring with the given notes.
Parameters
cls: type or objectA class with a method with the same name as the decorated method. The docstring of the method in this class replaces the docstring of the decorated method.
notes: strThe notes to replace the existing 'Notes' section with.
Returns
decfunc: functionThe decorator function that modifies the __doc__ attribute of its argument.
Aliases
-
scipy.stats._continuous_distns.replace_notes_in_docstring