@@ -82,16 +82,12 @@ async def __aexit__(
82
82
await self .algolia_client .close ()
83
83
self ._logger .debug ("Finished closing algolia client" )
84
84
85
- async def browse_objects (
86
- self , browse_params : BrowseParamsObject
87
- ) -> BrowseResponse :
85
+ async def browse_objects (self , browse_params : BrowseParamsObject ) -> BrowseResponse :
88
86
return await self .algolia_client .browse_objects (
89
87
index_name = self .name , aggregator = None , browse_params = browse_params
90
88
)
91
89
92
- async def save_objects (
93
- self , objects : list [dict [str , Any ]]
94
- ) -> list [BatchResponse ]:
90
+ async def save_objects (self , objects : list [dict [str , Any ]]) -> list [BatchResponse ]:
95
91
return await self .algolia_client .save_objects (self .name , objects )
96
92
97
93
async def delete_objects (self , objectids : list [str ]) -> list [BatchResponse ]:
@@ -148,9 +144,7 @@ async def browse_objects(
148
144
for _ in range (5 ):
149
145
yield {}
150
146
151
- async def delete_objects (
152
- self , objectids : list [str ]
153
- ) -> list [DeletedAtResponse ]:
147
+ async def delete_objects (self , objectids : list [str ]) -> list [DeletedAtResponse ]:
154
148
return [DeletedAtResponse (task_id = 0 , deleted_at = "" ) for _ in objectids ]
155
149
156
150
0 commit comments