from typing import Callable


def rename(new_name: str) -> Callable[[Callable], Callable]:
    """Rename a function."""
    def _decorator(func: Callable) -> Callable:
        def _wrapper(*args, **kwargs):
            return func(*args, **kwargs)

        _wrapper.__name__ = new_name
        return _wrapper

    return _decorator