| 48 | |
| 49 | |
| 50 | class _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 | |
| 73 | MongoCredential = namedtuple( |
no outgoing calls
no test coverage detected