(self, other)
| 665 | # (which, e.g., astropy Quantity cannot usefully do). See gh-8452. |
| 666 | class MyArray(np.ndarray): |
| 667 | def __eq__(self, other): |
| 668 | return super().__eq__(other).view(np.ndarray) |
| 669 | |
| 670 | def __lt__(self, other): |
| 671 | return super().__lt__(other).view(np.ndarray) |