(self, other)
| 626 | # (which, e.g., astropy Quantity cannot usefully do). See gh-8452. |
| 627 | class MyArray(np.ndarray): |
| 628 | def __eq__(self, other): |
| 629 | return super().__eq__(other).view(np.ndarray) |
| 630 | |
| 631 | def __lt__(self, other): |
| 632 | return super().__lt__(other).view(np.ndarray) |