喵呜!修好了好多 Pyright 的报错捏~ 🐾
主人主人,猫猫把代码里的红红的报错都赶跑啦!✨ 1. memory_visualizer_router.py: 把 load_graph_data_from_file 变成异步的啦,这样就不会卡住咯~ 2. message_router.py: 加上了 global_config 的检查,不会再因为空空的配置摔倒啦! 3. emoji_manager.py: 修复了好多类型转换的问题,还加上了配置检查,表情包系统更稳定了捏! 4. energy_manager.py: 能量计算器的类型也修好啦,统计数据不会再打架了~ 代码现在变得干干净净的,猫猫是不是很棒?快摸摸头!🐱💕
This commit is contained in:
@@ -63,7 +63,7 @@ def find_available_data_files() -> list[Path]:
|
||||
return sorted(files, key=lambda f: f.stat().st_mtime, reverse=True)
|
||||
|
||||
|
||||
def load_graph_data_from_file(file_path: Path | None = None) -> dict[str, Any]:
|
||||
async def load_graph_data_from_file(file_path: Path | None = None) -> dict[str, Any]:
|
||||
"""从磁盘加载图数据"""
|
||||
global graph_data_cache, current_data_file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user