pymel.util.decoration.decorated
-
decorated(origFunc, newFunc, decoration=None)
- Copies the original function’s name/docs/signature to the new function, so that the docstrings
contain relevant information again.
Most importantly, it adds the original function signature to the docstring of the decorating function,
as well as a comment that the function was decorated. Supports nested decorations.