def inherit_docs(original):
    """A decorator that copies the docstring from a function to the decorated one"""

    def wrapper(target):
        target.__doc__ = original.__doc__
        return target

    return wrapper