MCPcopy Create free account
hub / github.com/numpy/numpy / __eq__

Method __eq__

numpy/testing/tests/test_utils.py:477–478  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

viewMethod · 0.45
__eq__Method · 0.45

Tested by

no test coverage detected