PYTHON-5421 Fix handling of client timeout property (#2240)

This commit is contained in:
Steven Silvester 2025-03-27 11:43:37 -05:00 committed by GitHub
parent 53c4694cf9
commit 3875cc6e1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -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.

View File

@ -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.