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

Class NegativeInfinity

numpy/_utils/_pep440.py:77–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

_pep440.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected