File tree Expand file tree Collapse file tree
src/a2a/server/request_handlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,8 +133,8 @@ async def on_message_send_stream(
133133 `Event` objects from the agent's execution.
134134 """
135135 # This is needed for typechecker to recognise this method as an async generator.
136- if False :
137- yield
136+ raise UnsupportedOperationError
137+ yield
138138
139139 @abstractmethod
140140 async def on_create_task_push_notification_config (
@@ -189,9 +189,8 @@ async def on_subscribe_to_task(
189189 Yields:
190190 `Event` objects from the agent's ongoing execution for the specified task.
191191 """
192- # This is needed for typechecker to recognise the method as an async generator.
193- if False :
194- yield
192+ raise UnsupportedOperationError
193+ yield
195194
196195 @abstractmethod
197196 async def on_list_task_push_notification_configs (
You can’t perform that action at this time.
0 commit comments