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

Method _compare

numpy/_utils/_pep440.py:158–162  ·  view source on GitHub ↗
(self, other, method)

Source from the content-addressed store, hash-verified

156 return self._compare(other, lambda s, o: s != o)
157
158 def _compare(self, other, method):
159 if not isinstance(other, _BaseVersion):
160 return NotImplemented
161
162 return method(self._key, other._key)
163
164
165class LegacyVersion(_BaseVersion):

Callers 6

__lt__Method · 0.95
__le__Method · 0.95
__eq__Method · 0.95
__ge__Method · 0.95
__gt__Method · 0.95
__ne__Method · 0.95

Calls 1

methodFunction · 0.85

Tested by

no test coverage detected