def validate_type_strict(object_, object_types):
    '''
    Validates that object_ is of type object__type
    :param object_: the object to check
    :param object_types: the desired type of the object (or tuple of types)
    '''
    if not isinstance(object_types, tuple):
        object_types = (object_types,)
    exact_type_match = any([type(object_) == t for t in object_types])
    if not exact_type_match:
        error_format = 'Please pass object_ of type %s as the argument, encountered type %s'
        message = (object_types, type(object_)) % error_format
        raise ValueError(message)
dataset/ETHPy150Open tschellenbach/Stream-Framework/stream_framework/utils/validate.py/validate_type_strict/swapped operands of `%`