From 54e691e4197411f6aa33943076dbac2f55d307ea Mon Sep 17 00:00:00 2001 From: Jozef Koval Date: Sun, 1 Nov 2026 17:28:41 +0100 Subject: [PATCH] Import future annotations so the gate tests load on Python 3.9 The test file annotates with `str | None` and `Path | None`. Python evaluates these when it defines each function, and Python 3.9, the stock macOS python3, has no `|` on types. So the import raised a TypeError, and discovery of the whole scripts/tests folder failed. With the future import, Python keeps the annotations as strings and does not evaluate them. --- scripts/tests/test_check_perf_floors.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/tests/test_check_perf_floors.py b/scripts/tests/test_check_perf_floors.py index ecbdcdf9..7fd2db71 100644 --- a/scripts/tests/test_check_perf_floors.py +++ b/scripts/tests/test_check_perf_floors.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import os from pathlib import Path import shutil