From 86a6ab9b0104c700502c45f1479a57bf7f43e01f Mon Sep 17 00:00:00 2001 From: revernomad17 Date: Tue, 7 Apr 2026 16:13:47 +0700 Subject: [PATCH] fix check_deps.py crash on Python < 3.10 str | None union syntax requires Python 3.10+. Adding from __future__ import annotations makes all annotations lazy so the script can run on older Python and report the version requirement instead of crashing. Co-Authored-By: Claude Sonnet 4.6 --- check_deps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/check_deps.py b/check_deps.py index 50e81b4..c15b5ac 100644 --- a/check_deps.py +++ b/check_deps.py @@ -6,6 +6,8 @@ Usage: python check_deps.py """ +from __future__ import annotations # allows str | None syntax on Python < 3.10 + import importlib.metadata import sys