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

Class Infinity

numpy/_utils/_pep440.py:44–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44class Infinity:
45 def __repr__(self):
46 return "Infinity"
47
48 def __hash__(self):
49 return hash(repr(self))
50
51 def __lt__(self, other):
52 return False
53
54 def __le__(self, other):
55 return False
56
57 def __eq__(self, other):
58 return isinstance(other, self.__class__)
59
60 def __ne__(self, other):
61 return not isinstance(other, self.__class__)
62
63 def __gt__(self, other):
64 return True
65
66 def __ge__(self, other):
67 return True
68
69 def __neg__(self):
70 return NegativeInfinity
71
72
73Infinity = Infinity()

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…