Skip to content

Commit bcde236

Browse files
committed
bring back raise UnsupportedOperationError - remove in another PR
1 parent 628714c commit bcde236

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/a2a/server/request_handlers/request_handler.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)