(self, other)
| 475 | # (which, e.g., astropy Quantity cannot usefully do). See gh-8452. |
| 476 | class MyArray(np.ndarray): |
| 477 | def __eq__(self, other): |
| 478 | return super().__eq__(other).view(np.ndarray) |
| 479 | |
| 480 | def __lt__(self, other): |
| 481 | return super().__lt__(other).view(np.ndarray) |