for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""
Exports some modified versions of functions from functools
from functools import wraps as functools_wraps, WRAPPER_UPDATES
def wraps(wrapped):
This has the same functionality as single arity functools.wraps but deals with the case
where wrapped may not have __dict__
return functools_wraps(
wrapped, updated=WRAPPER_UPDATES if hasattr(wrapped, "__dict__") else tuple()
)