Use functools.wraps() to copy the docstring and name from the decorated function to the closure so the autodoc code gets the right values.
Use functools.wraps() to copy the docstring and name from the decorated function to the closure so the autodoc code gets the right values.