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

Class NegativeInfinity

numpy/_utils/_pep440.py:76–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75
76class NegativeInfinity:
77 def __repr__(self):
78 return "-Infinity"
79
80 def __hash__(self):
81 return hash(repr(self))
82
83 def __lt__(self, other):
84 return True
85
86 def __le__(self, other):
87 return True
88
89 def __eq__(self, other):
90 return isinstance(other, self.__class__)
91
92 def __ne__(self, other):
93 return not isinstance(other, self.__class__)
94
95 def __gt__(self, other):
96 return False
97
98 def __ge__(self, other):
99 return False
100
101 def __neg__(self):
102 return Infinity
103
104
105# BEGIN packaging/version.py

Callers 1

_pep440.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…