@@ -50,12 +50,14 @@ def lazily(self) -> ILazyClusterTransactionOperations:
50
50
pass
51
51
52
52
@abc .abstractmethod
53
- def get_compare_exchange_value (self , key : str , object_type : Type [_T ] = None ) -> Optional [CompareExchangeValue [_T ]]:
53
+ def get_compare_exchange_value (
54
+ self , key : str , object_type : Optional [Type [_T ]] = None
55
+ ) -> Optional [CompareExchangeValue [_T ]]:
54
56
pass
55
57
56
58
@abc .abstractmethod
57
59
def get_compare_exchange_values (
58
- self , keys : List [str ], object_type : Type [_T ] = None
60
+ self , keys : List [str ], object_type : Optional [ Type [_T ] ] = None
59
61
) -> Dict [str , CompareExchangeValue [_T ]]:
60
62
pass
61
63
@@ -289,11 +291,13 @@ def __init__(self, session: "DocumentSession"):
289
291
def lazily (self ) -> ILazyClusterTransactionOperations :
290
292
return LazyClusterTransactionOperations (self .session )
291
293
292
- def get_compare_exchange_value (self , key : str , object_type : Type [_T ] = None ) -> Optional [CompareExchangeValue [_T ]]:
294
+ def get_compare_exchange_value (
295
+ self , key : str , object_type : Optional [Type [_T ]] = None
296
+ ) -> Optional [CompareExchangeValue [_T ]]:
293
297
return self ._get_compare_exchange_value_internal (key , object_type )
294
298
295
299
def get_compare_exchange_values (
296
- self , keys : List [str ], object_type : Type [_T ] = None
300
+ self , keys : List [str ], object_type : Optional [ Type [_T ] ] = None
297
301
) -> Dict [str , CompareExchangeValue [_T ]]:
298
302
return super ()._get_compare_exchange_values_internal (keys , object_type )
299
303
0 commit comments