(ty_left, ty_right)
return False
Used during typing to check that specified types can be compared
Used during typing to check that specified types can be compared
Used during typing to check that specified types can be compared
def check_types_comparable(ty_left, ty_right):
    """Used during typing to check that specified types can be compared"""

    if hasattr(ty_left, 'dtype'):
        ty_left = ty_left.dtype

    if hasattr(ty_right, 'dtype'):
        ty_right = ty_right.dtype

    # add the rest of supported types here
    if isinstance(ty_left, types.Number):
        return isinstance(ty_right, types.Number)
    if isinstance(ty_left, types.UnicodeType):
        return isinstance(ty_right, types.UnicodeType)
    if isinstance(ty_left, types.Boolean):
        return isinstance(ty_right, types.Boolean)
    if isinstance(ty_left, (types.Tuple, types.UniTuple)):
        # FIXME: just for now to unblock compilation
        return ty_left == ty_right

    return False
def check_types_comparable ( ty_left , ty_right ) : if hasattr ( ty_left , 'dtype' ) : ty_left = ty_left . dtype if hasattr ( ty_right , 'dtype' ) : ty_right = ty_right . dtype # add the rest of supported types here if isinstance ( ty_left , types . Number ) : return isinstance ( ty_right , types . Number ) if isinstance ( ty_left , types . UnicodeType ) : return isinstance ( ty_right , types . UnicodeType ) if isinstance ( ty_left , types . Boolean ) : return isinstance ( ty_right , types . Boolean ) if isinstance ( ty_left , ( types . Tuple , types . UniTuple ) ) : # FIXME: just for now to unblock compilation return ty_left == ty_right return False