@@ -59,7 +59,7 @@ def acknowledged(self) -> bool:
59
59
class InsertOneResult (_WriteResult ):
60
60
"""The return type for :meth:`~pymongo.collection.Collection.insert_one`."""
61
61
62
- __slots__ = ("__inserted_id" , "__acknowledged" )
62
+ __slots__ = ("__inserted_id" ,)
63
63
64
64
def __init__ (self , inserted_id : Any , acknowledged : bool ) -> None :
65
65
self .__inserted_id = inserted_id
@@ -74,7 +74,7 @@ def inserted_id(self) -> Any:
74
74
class InsertManyResult (_WriteResult ):
75
75
"""The return type for :meth:`~pymongo.collection.Collection.insert_many`."""
76
76
77
- __slots__ = ("__inserted_ids" , "__acknowledged" )
77
+ __slots__ = ("__inserted_ids" ,)
78
78
79
79
def __init__ (self , inserted_ids : List [Any ], acknowledged : bool ) -> None :
80
80
self .__inserted_ids = inserted_ids
@@ -98,7 +98,7 @@ class UpdateResult(_WriteResult):
98
98
:meth:`~pymongo.collection.Collection.replace_one`.
99
99
"""
100
100
101
- __slots__ = ("__raw_result" , "__acknowledged" )
101
+ __slots__ = ("__raw_result" ,)
102
102
103
103
def __init__ (self , raw_result : Dict [str , Any ], acknowledged : bool ) -> None :
104
104
self .__raw_result = raw_result
@@ -136,7 +136,7 @@ class DeleteResult(_WriteResult):
136
136
"""The return type for :meth:`~pymongo.collection.Collection.delete_one`
137
137
and :meth:`~pymongo.collection.Collection.delete_many`"""
138
138
139
- __slots__ = ("__raw_result" , "__acknowledged" )
139
+ __slots__ = ("__raw_result" ,)
140
140
141
141
def __init__ (self , raw_result : Dict [str , Any ], acknowledged : bool ) -> None :
142
142
self .__raw_result = raw_result
@@ -157,7 +157,7 @@ def deleted_count(self) -> int:
157
157
class BulkWriteResult (_WriteResult ):
158
158
"""An object wrapper for bulk API write results."""
159
159
160
- __slots__ = ("__bulk_api_result" , "__acknowledged" )
160
+ __slots__ = ("__bulk_api_result" ,)
161
161
162
162
def __init__ (self , bulk_api_result : Dict [str , Any ], acknowledged : bool ) -> None :
163
163
"""Create a BulkWriteResult instance.
0 commit comments