(self, other)
| 864 | # (which, e.g., astropy Quantity cannot usefully do). See gh-8452. |
| 865 | class MyArray(np.ndarray): |
| 866 | def __eq__(self, other): |
| 867 | return super().__eq__(other).view(np.ndarray) |
| 868 | |
| 869 | def __lt__(self, other): |
| 870 | return super().__lt__(other).view(np.ndarray) |