为所有函数和类添加中文注释文档字符串

This commit is contained in:
2026-06-10 10:34:11 +08:00
parent c612a7ad71
commit c3f93e4441
29 changed files with 103 additions and 17 deletions
+1
View File
@@ -5,6 +5,7 @@ from pathlib import Path
def enable_crash_handler(log_dir: str | Path) -> None:
"""启用faulthandler,将崩溃堆栈写入日志文件"""
log_dir = Path(log_dir)
log_dir.mkdir(parents=True, exist_ok=True)
crash_log = open(log_dir / "posefit-crash.log", "a", buffering=1)