@@ -25,15 +25,15 @@ def __init__(self, underlying_store: TaskStore):
2525 self ._store = underlying_store
2626
2727 async def save (
28- self , task : Task , context : ServerCallContext | None = None
28+ self , task : Task , context : ServerCallContext
2929 ) -> None :
3030 """Saves a copy of the task to the underlying store."""
3131 task_copy = Task ()
3232 task_copy .CopyFrom (task )
3333 await self ._store .save (task_copy , context )
3434
3535 async def get (
36- self , task_id : str , context : ServerCallContext | None = None
36+ self , task_id : str , context : ServerCallContext
3737 ) -> Task | None :
3838 """Retrieves a task from the underlying store and returns a copy."""
3939 task = await self ._store .get (task_id , context )
@@ -46,7 +46,7 @@ async def get(
4646 async def list (
4747 self ,
4848 params : ListTasksRequest ,
49- context : ServerCallContext | None = None ,
49+ context : ServerCallContext ,
5050 ) -> ListTasksResponse :
5151 """Retrieves a list of tasks from the underlying store and returns a copy."""
5252 response = await self ._store .list (params , context )
@@ -55,7 +55,7 @@ async def list(
5555 return response_copy
5656
5757 async def delete (
58- self , task_id : str , context : ServerCallContext | None = None
58+ self , task_id : str , context : ServerCallContext
5959 ) -> None :
6060 """Deletes a task from the underlying store."""
6161 await self ._store .delete (task_id , context )
0 commit comments