MCPcopy Index your code
hub / github.com/numpy/numpy / __eq__

Method __eq__

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

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

viewMethod · 0.45
__eq__Method · 0.45

Tested by

no test coverage detected