Skip to content

Commit 3875cc6

Browse files
authored
PYTHON-5421 Fix handling of client timeout property (#2240)
1 parent 53c4694 commit 3875cc6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pymongo/asynchronous/mongo_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,7 @@ def __init__(
758758
self._host = host
759759
self._port = port
760760
self._topology: Topology = None # type: ignore[assignment]
761+
self._timeout: float | None = None
761762

762763
# _pool_class, _monitor_class, and _condition_class are for deep
763764
# customization of PyMongo, e.g. Motor.

pymongo/synchronous/mongo_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,7 @@ def __init__(
756756
self._host = host
757757
self._port = port
758758
self._topology: Topology = None # type: ignore[assignment]
759+
self._timeout: float | None = None
759760

760761
# _pool_class, _monitor_class, and _condition_class are for deep
761762
# customization of PyMongo, e.g. Motor.

0 commit comments

Comments
 (0)