Replacing `functools.wraps` decorator is an ugly hack. Consider finding a different solution or manually documenting the affected code.