def is_scalar_subtype(t1, t2):
  return isinstance(t1, ScalarT) and \
         isinstance(t2, ScalarT) and \
         ((t1 is t2) or 
          (t1 == t2) or 
          (t1.nbytes < t2.nbytes) or 
          (isinstance(t1, IntT) and isinstance(t2, FloatT)))
dataset/ETHPy150Open iskandr/parakeet/parakeet/ndtypes/scalar_types.py/is_scalar_subtype/original