- ivy.promote_types(type1, type2, /, *, array_api_promotion=False)[source]#
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
bool) – whether to only use the array api promotion rules (default:
- Return type:
ret – The type that both input types promote to