mirror of
https://github.com/langgenius/dify.git
synced 2026-03-11 20:01:53 +08:00
Add type hint for empty iteration inputs
This commit is contained in:
parent
bd1f9bb735
commit
aff9853156
@ -150,7 +150,7 @@ class IterationNode(LLMUsageTrackingMixin, Node[IterationNodeData]):
|
||||
|
||||
def _handle_empty_iteration(self, variable: ArraySegment | NoneSegment) -> Generator[NodeEventBase, None, None]:
|
||||
started_at = naive_utc_now()
|
||||
inputs = {"iterator_selector": []}
|
||||
inputs: dict[str, object] = {"iterator_selector": []}
|
||||
usage = LLMUsage.empty_usage()
|
||||
|
||||
yield IterationStartedEvent(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user