def get_confirmation(question: str, default_yes: bool = True) -> bool:
    """Retrieve y/n answer from user, with default."""
    question = question + (" ([y]/n): " if default_yes else " (y/[n]): ")
    resp = input(question)
    while resp not in ["y", "n", ""]:
        resp = input(question)
    if (resp == "" and not default_yes) or resp == "n":
        return False
    return True