def _is_equal_all_type(data, type_pattern):
    """
    :type data: list or tuple
    :type type_pattern: type
    :rtype: bool

    >>> _is_equal_all_type([1, 2, 3], int)
    True
    >>> _is_equal_all_type([1.0, 2.0, 3.0], float)
    True
    >>> _is_equal_all_type([1, 2.0, 3], int)
    False
    """
    if all(isinstance(d, type_pattern) for d in data):
        return True
    else:
        return False