def make_repeater(n: int):
    """Closure that returns n * string"""
    def repeater(string: str) -> str:
        assert type(string) == str, "Just strings allowed"
        return n * string

    return repeater