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

Class _Cache

pymongo/auth_shared.py:50–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50class _Cache:
51 __slots__ = ("data",)
52
53 _hash_val = hash("_Cache")
54
55 def __init__(self) -> None:
56 self.data = None
57
58 def __eq__(self, other: object) -> bool:
59 # Two instances must always compare equal.
60 if isinstance(other, _Cache):
61 return True
62 return NotImplemented
63
64 def __ne__(self, other: object) -> bool:
65 if isinstance(other, _Cache):
66 return False
67 return NotImplemented
68
69 def __hash__(self) -> int:
70 return self._hash_val
71
72
73MongoCredential = namedtuple(

Callers 1

_build_credentials_tupleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected