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

Class MinKey

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

MongoDB internal MinKey type.

Source from the content-addressed store, hash-verified

19
20
21class MinKey:
22 """MongoDB internal MinKey type."""
23
24 __slots__ = ()
25
26 _type_marker = 255
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, MinKey)
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, dummy: Any) -> bool:
44 return True
45
46 def __lt__(self, other: Any) -> bool:
47 return not isinstance(other, MinKey)
48
49 def __ge__(self, other: Any) -> bool:
50 return isinstance(other, MinKey)
51
52 def __gt__(self, dummy: Any) -> bool:
53 return False
54
55 def __repr__(self) -> str:
56 return "MinKey()"

Callers 8

test_minkeyMethod · 0.90
test_minkey_picklingMethod · 0.90
_update_rs_from_primaryFunction · 0.90
__init__.pyFile · 0.90
_parse_canonical_minkeyFunction · 0.90

Calls

no outgoing calls

Tested by 5

test_minkeyMethod · 0.72
test_minkey_picklingMethod · 0.72