File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,9 +24,7 @@ class CopyingTaskStoreAdapter(TaskStore):
2424 def __init__ (self , underlying_store : TaskStore ):
2525 self ._store = underlying_store
2626
27- async def save (
28- self , task : Task , context : ServerCallContext
29- ) -> None :
27+ async def save (self , task : Task , context : ServerCallContext ) -> None :
3028 """Saves a copy of the task to the underlying store."""
3129 task_copy = Task ()
3230 task_copy .CopyFrom (task )
@@ -54,8 +52,6 @@ async def list(
5452 response_copy .CopyFrom (response )
5553 return response_copy
5654
57- async def delete (
58- self , task_id : str , context : ServerCallContext
59- ) -> None :
55+ async def delete (self , task_id : str , context : ServerCallContext ) -> None :
6056 """Deletes a task from the underlying store."""
6157 await self ._store .delete (task_id , context )
Original file line number Diff line number Diff line change @@ -207,9 +207,7 @@ def __init__(
207207 CopyingTaskStoreAdapter (self ._impl ) if use_copying else self ._impl
208208 )
209209
210- async def save (
211- self , task : Task , context : ServerCallContext
212- ) -> None :
210+ async def save (self , task : Task , context : ServerCallContext ) -> None :
213211 """Saves or updates a task in the store."""
214212 await self ._store .save (task , context )
215213
@@ -227,8 +225,6 @@ async def list(
227225 """Retrieves a list of tasks from the store."""
228226 return await self ._store .list (params , context )
229227
230- async def delete (
231- self , task_id : str , context : ServerCallContext
232- ) -> None :
228+ async def delete (self , task_id : str , context : ServerCallContext ) -> None :
233229 """Deletes a task from the store by ID."""
234230 await self ._store .delete (task_id , context )
You can’t perform that action at this time.
0 commit comments