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 np_dtypes.canonicalize_dtype(np.promote_types(type1, type2))
def promote_types(type1, type2): # pylint: disable=missing-function-docstring type1 = _to_numpy_type(type1) type2 = _to_numpy_type(type2) return np_dtypes.canonicalize_dtype(np.promote_types(type1, type2))