from typing import Callable


def raises(e: Exception) -> Callable:
    """Return a function that raises the given exception when called.

    Args:
        e: The exception to be raised.

    Returns:
        A function that can take any arguments, and raises the given exception.
    """

    def f(*args, **kwargs):
        raise (e)

    return f