from typing import Sequence
from typing import Hashable


def all_items_equal(sequence: Sequence[Hashable]) -> bool:
    """
    Check whether all hashable items in a sequence are equal.

    Arguments:
        sequence: A sequence of hashables to be checked.

    Returns:
        `True` if all items in the sequence are equal, else `False`.
    """
    if isinstance(sequence, Sequence):
        return len(set(sequence)) == 1

    raise TypeError("Only list and tuples may be processed")