- ivy.promote_types(type1, type2, /, *, array_api_promotion=False)#
Promote the datatypes type1 and type2, returning the data type they promote to.
NativeDtype]) – the first of the two types to promote
NativeDtype]) – the second of the two types to promote
False) – whether to only use the array api promotion rules
- Return type:
ret – The type that both input types promote to