Performs the operation __abs__.
(self: Array, /)
| 423 | # Everything below this line is required by the spec. |
| 424 | |
| 425 | def __abs__(self: Array, /) -> Array: |
| 426 | """ |
| 427 | Performs the operation __abs__. |
| 428 | """ |
| 429 | if self.dtype not in _numeric_dtypes: |
| 430 | raise TypeError("Only numeric dtypes are allowed in __abs__") |
| 431 | res = self._array.__abs__() |
| 432 | return self.__class__._new(res) |
| 433 | |
| 434 | def __add__(self: Array, other: Union[int, float, Array], /) -> Array: |
| 435 | """ |