def type_change(old, new):
 if all((isinstance(x, base) for x in (old + new))):
  return False
 if (len(old) != len(new)):
  return True
 new_types = list(map(type, new))
 old_types = list(map(type, old))
 return (not all(map(issubtype, new_types, old_types)))

def type_change ( old , new ) : if all ( ( isinstance ( x , base ) for x in ( old + new ) ) ) : return False if ( len ( old ) != len ( new ) ) : return True new_types = list ( map ( type , new ) ) old_types = list ( map ( type , old ) ) return ( not all ( map ( issubtype , new_types , old_types ) ) )
was there a significant type change between old and new data? .