def matches_typeset(types, signature):
    if types in signature:
        return True
    match = True
    for a, b in zip(types, signature):
        check = isinstance(b, TypeSet)
        if check and (a not in b) or (not check and a != b):
            match = False
            break
    return match
Match argument types to the parameter types of a signature
dataset/ETHPy150Open blaze/datashape/datashape/typesets.py/matches_typeset