fix: Ruff

This commit is contained in:
墨梓柒
2025-04-23 10:29:34 +08:00
parent 2b07c9e81b
commit 9eaf72e4f9

View File

@@ -375,7 +375,7 @@ class Heartflow:
async def get_all_interest_states(self) -> Dict[str, Dict]: # <-- Make async 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 items_snapshot = list(self._subheartflows.items()) # Make a copy for safe iteration
tasks = [] tasks = []