Skip to content
Commit 53fb3021 authored by Douglas Raillard's avatar Douglas Raillard
Browse files

utils: Add update_wrapper_doc() helper

Behaves like functools.wraps(), with the additional capability of
updating the docstring and the signature of the wrapped function.

This allows taking into account an "extender" function that is used to
implement the wrapper, so it can add some of its parameters to the
decorated function, and part of its docstring as well.
parent c070fa21
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment