chore(api/core): apply ruff reformatting (#7624)

This commit is contained in:
Bowen Liang 2024-09-10 17:00:20 +08:00 committed by GitHub
commit 2cf1187b32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
724 changed files with 21180 additions and 21123 deletions

View file

@ -1,4 +1,3 @@
from core.workflow.entities.base_node_data_entities import BaseIterationNodeData, BaseIterationState
@ -7,7 +6,8 @@ class LoopNodeData(BaseIterationNodeData):
Loop Node Data.
"""
class LoopState(BaseIterationState):
"""
Loop State.
"""
"""

View file

@ -10,6 +10,7 @@ class LoopNode(BaseNode):
"""
Loop Node.
"""
_node_data_cls = LoopNodeData
_node_type = NodeType.LOOP
@ -21,14 +22,16 @@ class LoopNode(BaseNode):
"""
Get conditions.
"""
node_id = node_config.get('id')
node_id = node_config.get("id")
if not node_id:
return []
# TODO waiting for implementation
return [Condition(
variable_selector=[node_id, 'index'],
comparison_operator="",
value_type="value_selector",
value_selector=[]
)]
return [
Condition(
variable_selector=[node_id, "index"],
comparison_operator="",
value_type="value_selector",
value_selector=[],
)
]