def is_sequence_of_type(sequence, t):
    """Determine if all items in a sequence are of a specific type.

    Parameters
    ----------
    sequence : list or tuple
        The sequence of items.
    t : object
        The item type.

    Returns
    -------
    bool
        True if all items in the sequence are of the specified type.
        False otherwise.

    Examples
    --------
    >>> is_sequence_of_type([1, 2, 3], int)
    True
    """
    if any(not isinstance(item, t) for item in sequence):
        return False
    return True