def copy_docstring(other):
    """
    Decorator that sets ``__doc__`` to ``other.__doc___``.
    """

    def wrapper(func):
        func.__doc__ = other.__doc__
        return func

    return wrapper