From d540c6d73096dbd225b551c14762e3c32f83fdd8 Mon Sep 17 00:00:00 2001 From: pyob-bot Date: Wed, 13 May 2026 03:40:05 +0000 Subject: [PATCH 1/2] Refactor: Add type hints to read_file function --- src/pyob/dashboard_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyob/dashboard_server.py b/src/pyob/dashboard_server.py index fa5259f..d11132e 100644 --- a/src/pyob/dashboard_server.py +++ b/src/pyob/dashboard_server.py @@ -232,7 +232,7 @@ def api_history_data(): return jsonify({"success": False, "message": "History data not available"}), 404 -def read_file(filename): +def read_file(filename: str) -> str: with open(filename, "r", encoding="utf-8") as f: return f.read() From 8052294974e6603023ae63938704d341f5f15ee9 Mon Sep 17 00:00:00 2001 From: pyob-bot Date: Wed, 13 May 2026 03:46:10 +0000 Subject: [PATCH 2/2] Refactor: Add workspace cache to CoreUtilsMixin --- src/pyob/core_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyob/core_utils.py b/src/pyob/core_utils.py index 2a662cd..7fa0c7e 100644 --- a/src/pyob/core_utils.py +++ b/src/pyob/core_utils.py @@ -138,6 +138,7 @@ class CoreUtilsMixin: target_dir: str memory_path: str key_cooldowns: dict[str, float] + _workspace_cache: dict[str, tuple[float, str]] def generate_pr_summary(self, rel_path: str, diff_text: str) -> dict: """Analyzes a git diff and returns a professional title and body for the PR."""