MongoDB internal MaxKey type.
| 19 | |
| 20 | |
| 21 | class MaxKey: |
| 22 | """MongoDB internal MaxKey type.""" |
| 23 | |
| 24 | __slots__ = () |
| 25 | |
| 26 | _type_marker = 127 |
| 27 | |
| 28 | def __getstate__(self) -> Any: |
| 29 | return {} |
| 30 | |
| 31 | def __setstate__(self, state: Any) -> None: |
| 32 | pass |
| 33 | |
| 34 | def __eq__(self, other: Any) -> bool: |
| 35 | return isinstance(other, MaxKey) |
| 36 | |
| 37 | def __hash__(self) -> int: |
| 38 | return hash(self._type_marker) |
| 39 | |
| 40 | def __ne__(self, other: Any) -> bool: |
| 41 | return not self == other |
| 42 | |
| 43 | def __le__(self, other: Any) -> bool: |
| 44 | return isinstance(other, MaxKey) |
| 45 | |
| 46 | def __lt__(self, dummy: Any) -> bool: |
| 47 | return False |
| 48 | |
| 49 | def __ge__(self, dummy: Any) -> bool: |
| 50 | return True |
| 51 | |
| 52 | def __gt__(self, other: Any) -> bool: |
| 53 | return not isinstance(other, MaxKey) |
| 54 | |
| 55 | def __repr__(self) -> str: |
| 56 | return "MaxKey()" |
no outgoing calls