From 9eaf72e4f986b7662d5095d4708478e66aca5955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E6=A2=93=E6=9F=92?= <1787882683@qq.com> Date: Wed, 23 Apr 2025 10:29:34 +0800 Subject: [PATCH] fix: Ruff --- src/heart_flow/heartflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heart_flow/heartflow.py b/src/heart_flow/heartflow.py index 96e298083..fd99bf7af 100644 --- a/src/heart_flow/heartflow.py +++ b/src/heart_flow/heartflow.py @@ -375,7 +375,7 @@ class Heartflow: async def get_all_interest_states(self) -> Dict[str, Dict]: # <-- Make async """获取所有活跃子心流的当前兴趣状态""" - states = {} + _states = {} # 创建副本以避免在迭代时修改字典 items_snapshot = list(self._subheartflows.items()) # Make a copy for safe iteration tasks = []