eq — Python array API standard 2024.12 documentation (original) (raw)

__eq__(self: dtype, other: dtype, /) → bool

Computes the truth value of self == other in order to test for data type object equality.

Parameters:

Returns:

out (bool) – a boolean indicating whether the data type objects are equal.