Performs the operation __invert__.
(self: Array, /)
| 594 | return res |
| 595 | |
| 596 | def __invert__(self: Array, /) -> Array: |
| 597 | """ |
| 598 | Performs the operation __invert__. |
| 599 | """ |
| 600 | if self.dtype not in _integer_or_boolean_dtypes: |
| 601 | raise TypeError("Only integer or boolean dtypes are allowed in __invert__") |
| 602 | res = self._array.__invert__() |
| 603 | return self.__class__._new(res) |
| 604 | |
| 605 | def __le__(self: Array, other: Union[int, float, Array], /) -> Array: |
| 606 | """ |