mirror of
https://github.com/langgenius/dify.git
synced 2026-03-26 05:29:50 +08:00
chore(api): resolve MyPy issues
This commit is contained in:
parent
6b87b0fa42
commit
f762c969b3
@ -404,7 +404,7 @@ class LoopNode(BaseNode):
|
||||
for node_id in loop_graph.node_ids:
|
||||
variable_pool.remove([node_id])
|
||||
|
||||
_outputs = {}
|
||||
_outputs: dict[str, Segment | int | None] = {}
|
||||
for loop_variable_key, loop_variable_selector in loop_variable_selectors.items():
|
||||
_loop_variable_segment = variable_pool.get(loop_variable_selector)
|
||||
if _loop_variable_segment:
|
||||
|
||||
@ -62,7 +62,7 @@ class ConditionProcessor:
|
||||
)
|
||||
else:
|
||||
actual_value = variable.value if variable else None
|
||||
expected_value = condition.value
|
||||
expected_value: str | Sequence[str] | bool | list[bool] | None = condition.value
|
||||
if isinstance(expected_value, str):
|
||||
expected_value = variable_pool.convert_template(expected_value).text
|
||||
# Here we need to explicit convet the input string to boolean.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user