| 42 | |
| 43 | |
| 44 | class 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 | |
| 73 | Infinity = Infinity() |
no outgoing calls
no test coverage detected
searching dependent graphs…