PYTHON-5421 Fix handling of client timeout property (#2240)
This commit is contained in:
parent
53c4694cf9
commit
3875cc6e1b
@ -758,6 +758,7 @@ class AsyncMongoClient(common.BaseObject, Generic[_DocumentType]):
|
||||
self._host = host
|
||||
self._port = port
|
||||
self._topology: Topology = None # type: ignore[assignment]
|
||||
self._timeout: float | None = None
|
||||
|
||||
# _pool_class, _monitor_class, and _condition_class are for deep
|
||||
# customization of PyMongo, e.g. Motor.
|
||||
|
||||
@ -756,6 +756,7 @@ class MongoClient(common.BaseObject, Generic[_DocumentType]):
|
||||
self._host = host
|
||||
self._port = port
|
||||
self._topology: Topology = None # type: ignore[assignment]
|
||||
self._timeout: float | None = None
|
||||
|
||||
# _pool_class, _monitor_class, and _condition_class are for deep
|
||||
# customization of PyMongo, e.g. Motor.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user