Skip to content

Commit b98b99a

Browse files
committed
Fix csot reset
1 parent 606eaa6 commit b98b99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/_csot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def reset() -> Generator:
7171
if timeout is None:
7272
deadline_token = DEADLINE.set(DEADLINE.get())
7373
else:
74-
deadline_token = DEADLINE.set(DEADLINE.get() + timeout) # type: ignore[operator]
74+
deadline_token = DEADLINE.set(DEADLINE.get() + timeout)
7575
yield
7676
DEADLINE.reset(deadline_token)
7777

0 commit comments

Comments
 (0)