psychos.utils.docstring#

psychos.utils.docstring(from_method: Callable) Callable[source]#

Decorator that copies the docstring from one method to another.

Parameters:

from_method (callable) – The method to copy the docstring from.

Returns:

The decorated method with the copied docstring.

Return type:

callable