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.
This commit is contained in:
Jozef Koval 2026-11-01 17:28:41 +01:00
parent 217b522ec3
commit 54e691e419

View File

@ -1,3 +1,5 @@
from __future__ import annotations
import os
from pathlib import Path
import shutil