result_type

result_type(*arrays_and_dtypes: Union[array, dtype]) dtype

Returns the dtype that results from applying the type promotion rules (see Type Promotion Rules) to the arguments.

Note

If provided mixed dtypes (e.g., integer and floating-point), the returned dtype will be implementation-specific.

Parameters

arrays_and_dtypes (Union[array, dtype]) – an arbitrary number of input arrays and/or dtypes.

Returns

out (dtype) – the dtype resulting from an operation involving the input arrays and dtypes.