We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c106c08 commit 0d301f1Copy full SHA for 0d301f1
pymongo/__init__.py
@@ -142,8 +142,8 @@ def timeout(seconds: Optional[float]) -> ContextManager:
142
else:
143
print(f"failed with non-timeout error: {exc!r}")
144
145
- When nesting :func:`~pymongo.timeout`, the newly computed deadline is capped to at most
146
- the existing deadline. The deadline can only be shortened, not extended.
+ When nesting :func:`~pymongo.timeout`, the nested deadline is capped by
+ the outer deadline. The deadline can only be shortened, not extended.
147
When exiting the block, the previous deadline is restored::
148
149
with pymongo.timeout(5):
0 commit comments