mirror of
https://ghfast.top/https://github.com/aeroxw/easy-tdx.git
synced 2026-09-12 22:44:17 +08:00
根因:CI 的 mypy job 在 Python 3.13 下运行,安装的 numpy 2.x stub 使用 PEP 695 type 语句(3.12+ 语法),但 pyproject.toml 的 python_version="3.10" 让 mypy 按 3.10 语义解析,报 'Type statement is only supported in Python 3.12 and greater'。 修复: - python_version 提升到 3.12(CI mypy job 实际跑 3.13,开发目标版本对齐) - mypy/ruff 同步排除 gitignored 的 exchange_margin.py 本地脚本 - 顺带修复 market.py / test_screen.py 的 ruff format 漂移