mirror of
https://github.com/langgenius/dify.git
synced 2025-12-19 14:19:28 +00:00
Add type hint for empty iteration inputs
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user