Skip to content

Commit 83798d1

Browse files
committed
PYTHON-5506 Fix typing
1 parent e831685 commit 83798d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymongo/asynchronous/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def __init__(
141141
self.backoff_initial = backoff_initial
142142
self.backoff_max = backoff_max
143143

144-
async def record_success(self, retry: bool):
144+
async def record_success(self, retry: bool) -> None:
145145
"""Record a successful operation."""
146146
await self.token_bucket.deposit(retry)
147147

pymongo/synchronous/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def __init__(
141141
self.backoff_initial = backoff_initial
142142
self.backoff_max = backoff_max
143143

144-
def record_success(self, retry: bool):
144+
def record_success(self, retry: bool) -> None:
145145
"""Record a successful operation."""
146146
self.token_bucket.deposit(retry)
147147

0 commit comments

Comments
 (0)