import typing


def get_bool(
    raw: typing.Any,
    /,
) -> bool:
    """
    Parameters
    ----------
    raw: any
        The input to get the boolean from.

    Returns
    -------
    bool

    Raises
    ------
    ValueError
        If it's unclear what the boolean is.
    """
    if raw in ["True", "true", "t", "yes", "y", "1", 1, True]:
        return True
    if raw in ["False", "false", "f", "no", "n", "0", 0, False]:
        return False
    raise ValueError(f"Cannot assign {raw!r} to True or False!")