From b98b99af6774dac0002fe0aade8f0f761592e70e Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Fri, 1 Nov 2024 13:22:10 -0400 Subject: [PATCH] Fix csot reset --- pymongo/_csot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymongo/_csot.py b/pymongo/_csot.py index ac9ccd8ead..fc91f57436 100644 --- a/pymongo/_csot.py +++ b/pymongo/_csot.py @@ -71,7 +71,7 @@ def reset() -> Generator: if timeout is None: deadline_token = DEADLINE.set(DEADLINE.get()) else: - deadline_token = DEADLINE.set(DEADLINE.get() + timeout) # type: ignore[operator] + deadline_token = DEADLINE.set(DEADLINE.get() + timeout) yield DEADLINE.reset(deadline_token)