Skip to content

Commit f8b79a1

Browse files
authored
PYTHON-3861 add types to results.py (#1321)
1 parent 43d3fa6 commit f8b79a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class _WriteResult:
2626
def __init__(self, acknowledged: bool) -> None:
2727
self.__acknowledged = acknowledged
2828

29-
def _raise_if_unacknowledged(self, property_name):
29+
def _raise_if_unacknowledged(self, property_name: str) -> None:
3030
"""Raise an exception on property access if unacknowledged."""
3131
if not self.__acknowledged:
3232
raise InvalidOperation(

0 commit comments

Comments
 (0)