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

Method __init__

pymongo/monitoring.py:1103–1105  ·  view source on GitHub ↗
(self, address: _Address, reason: str, duration: Optional[float])

Source from the content-addressed store, hash-verified

1101 __slots__ = ("__reason",)
1102
1103 def __init__(self, address: _Address, reason: str, duration: Optional[float]) -> None:
1104 super().__init__(address=address, connection_id=0, duration=duration)
1105 self.__reason = reason
1106
1107 @property
1108 def reason(self) -> str:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected