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

Method __eq__

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

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

viewMethod · 0.45
__eq__Method · 0.45

Tested by

no test coverage detected