(type1, type2)
return dtypes.canonicalize_dtype(np.promote_types(type1, type2))
Returns the type resulting from applying NumPy type promotion.

  Args:
    type1: A numpy type.
    type2: A numpy type.

  Returns:
    A numpy type.
Returns the type resulting from applying NumPy type promotion.
Returns the type resulting from applying NumPy type promotion .
def promote_types(type1, type2):
  """Returns the type resulting from applying NumPy type promotion.

  Args:
    type1: A numpy type.
    type2: A numpy type.

  Returns:
    A numpy type.
  """
  type1 = _to_numpy_type(type1)
  type2 = _to_numpy_type(type2)
  return dtypes.canonicalize_dtype(np.promote_types(type1, type2))
def promote_types ( type1 , type2 ) : type1 = _to_numpy_type ( type1 ) type2 = _to_numpy_type ( type2 ) return dtypes . canonicalize_dtype ( np . promote_types ( type1 , type2 ) )