mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 11:56:55 +08:00
fix: replace unreachable yield expression with yield from () (#32727)
This commit is contained in:
parent
e4316a9bf6
commit
91dfdd87e3
@ -669,16 +669,14 @@ class AdvancedChatAppGenerateTaskPipeline(GraphRuntimeStateSupport):
|
|||||||
) -> Generator[StreamResponse, None, None]:
|
) -> Generator[StreamResponse, None, None]:
|
||||||
"""Handle retriever resources events."""
|
"""Handle retriever resources events."""
|
||||||
self._message_cycle_manager.handle_retriever_resources(event)
|
self._message_cycle_manager.handle_retriever_resources(event)
|
||||||
return
|
yield from ()
|
||||||
yield # Make this a generator
|
|
||||||
|
|
||||||
def _handle_annotation_reply_event(
|
def _handle_annotation_reply_event(
|
||||||
self, event: QueueAnnotationReplyEvent, **kwargs
|
self, event: QueueAnnotationReplyEvent, **kwargs
|
||||||
) -> Generator[StreamResponse, None, None]:
|
) -> Generator[StreamResponse, None, None]:
|
||||||
"""Handle annotation reply events."""
|
"""Handle annotation reply events."""
|
||||||
self._message_cycle_manager.handle_annotation_reply(event)
|
self._message_cycle_manager.handle_annotation_reply(event)
|
||||||
return
|
yield from ()
|
||||||
yield # Make this a generator
|
|
||||||
|
|
||||||
def _handle_message_replace_event(
|
def _handle_message_replace_event(
|
||||||
self, event: QueueMessageReplaceEvent, **kwargs
|
self, event: QueueMessageReplaceEvent, **kwargs
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user