MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / MaxKey

Class MaxKey

bson/max_key.py:21–56  ·  view source on GitHub ↗

MongoDB internal MaxKey type.

Source from the content-addressed store, hash-verified

19
20
21class 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()"

Callers 9

test_maxkeyMethod · 0.90
test_maxkey_picklingMethod · 0.90
__init__.pyFile · 0.90
_parse_canonical_maxkeyFunction · 0.90

Calls

no outgoing calls

Tested by 7

test_maxkeyMethod · 0.72
test_maxkey_picklingMethod · 0.72