🐛 fix(playbook): import Optional for cli compatibility

restore the missing typing.Optional import in scripts/playbook.py
so older python runtimes can import the CLI module successfully.

add a regression test for typing annotation imports and register it
in the tests README.
This commit is contained in:
csh
2026-05-19 10:09:55 +08:00
parent 63e24bfe54
commit c0729c7933
3 changed files with 34 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@ from pathlib import Path
from shutil import copy2, copytree, rmtree, which
import subprocess
import importlib.util
from typing import Optional
try:
import tomllib