From 10fbefbc4d8a437adbd1aa5c2e93696a3757bded Mon Sep 17 00:00:00 2001 From: Entropy-xcy Date: Sat, 24 Jan 2026 12:04:28 +0800 Subject: [PATCH] fix: Use Union/Optional syntax for Python 3.9 compatibility Fix TypeError: unsupported operand type(s) for |: 'type' and 'type' Python 3.9 does not support the union syntax introduced in Python 3.10. This change replaces: - with - with Import statements are also updated to include and from typing. --- .claude-plugin/lib/session_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.claude-plugin/lib/session_utils.py b/.claude-plugin/lib/session_utils.py index a0a2e4b..e889aa2 100644 --- a/.claude-plugin/lib/session_utils.py +++ b/.claude-plugin/lib/session_utils.py @@ -22,9 +22,9 @@ def is_handsoff_enabled() -> bool: def write_issue_index( session_id: str, - issue_no: int | str, + issue_no, workflow: str, - sess_dir: str | None = None + sess_dir = None ) -> str: """Write an issue index file for reverse lookup from issue number to session.