refactor: fix basedpyright/ruff errors

This commit is contained in:
Stream
2025-09-22 15:17:19 +08:00
parent e9313b9c1b
commit 394b7d09b8
11 changed files with 37 additions and 24 deletions

View File

@ -1235,7 +1235,7 @@ class LLMNode(Node):
memory_blocks = workflow.memory_blocks
for block_id in block_ids:
memory_block_spec = next((block for block in memory_blocks if block.id == block_id),None)
memory_block_spec = next((block for block in memory_blocks if block.id == block_id), None)
if memory_block_spec and memory_block_spec.scope == MemoryScope.NODE:
is_draft = (self.invoke_from == InvokeFrom.DEBUGGER)