data_algebra/util.py
def compatible_types(types_seen: Iterable[type]) -> bool:
    """
    Check if a set of types are all considered equivalent.

    :param types_seen: collection of types seen
    :return: True if types are all compatible, else False.
    """
    mapped_comparison = {map_type_to_canonical(t) for t in types_seen} - {type(None)}
    if (len(mapped_comparison) > 1) and (mapped_comparison != {int, float}):
        return False
    return True

    Check if a set of types are all considered equivalent.

    :param types_seen: collection of types seen
    :return: True if types are all compatible, else False.
    
Check if a set of types are all considered equivalent.
Check if a set of types are all considered equivalent .
def compatible_types(types_seen: Iterable[type]) -> bool:
    mapped_comparison = {map_type_to_canonical(t) for t in types_seen} - {type(None)}
    if (len(mapped_comparison) > 1) and (mapped_comparison != {int, float}):
        return False
    return True
def compatible_types ( types_seen : Iterable [ type ] ) -> bool : mapped_comparison = { map_type_to_canonical ( t ) for t in types_seen } - { type ( None ) } if ( len ( mapped_comparison ) > 1 ) and ( mapped_comparison != { int , float } ) : return False return True
Check if a set of types are all considered equivalent.
Check if a set of types are all considered equivalent .
"""
    Check if a set of types are all considered equivalent.

    :param types_seen: collection of types seen
    :return: True if types are all compatible, else False.
    """
True if types are all compatible, else False.
True if types are all compatible else False .
types_seen
Iterable[type]
collection of types seen
collection of types seen