Functools
wraps
wraps
SUMMARY: We use @wraps(func)
to preserve the information of a decorator.
So how do we get the actual function information and not the wrapper()
. We can use @wraps
for this:
Last updated
wraps
SUMMARY: We use @wraps(func)
to preserve the information of a decorator.
So how do we get the actual function information and not the wrapper()
. We can use @wraps
for this:
Last updated