def __prompt_overwrite(filename: str) -> bool:
    """Prompt if the given file should be overwritten.

    :param str filename: the filename
    :return: `True` if answered `y`, `False` if answered `n` or nothing
    :rtype: bool
    """
    prompt = input(f"Should '{filename}' be overwritten? [y/N] ")
    if prompt.lower() == "y":
        return True
    elif prompt.lower() in ("n", ""):
        return False
    else:
        return __prompt_overwrite(filename)