fix: replace unreachable yield expression with yield from () (#32727)

This commit is contained in:
Tyson Cung 2026-02-28 14:27:32 +08:00 committed by GitHub
parent e4316a9bf6
commit 91dfdd87e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -669,16 +669,14 @@ class AdvancedChatAppGenerateTaskPipeline(GraphRuntimeStateSupport):
) -> Generator[StreamResponse, None, None]:
"""Handle retriever resources events."""
self._message_cycle_manager.handle_retriever_resources(event)
return
yield # Make this a generator
yield from ()
def _handle_annotation_reply_event(
self, event: QueueAnnotationReplyEvent, **kwargs
) -> Generator[StreamResponse, None, None]:
"""Handle annotation reply events."""
self._message_cycle_manager.handle_annotation_reply(event)
return
yield # Make this a generator
yield from ()
def _handle_message_replace_event(
self, event: QueueMessageReplaceEvent, **kwargs