From 3afb25bb5ea79520eec52ca2d0cb01cead364cff Mon Sep 17 00:00:00 2001 From: gooker_young Date: Sun, 5 Jul 2026 13:16:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=20typing-extensions?= =?UTF-8?q?=20=E4=BE=9D=E8=B5=96=E6=9D=A1=E4=BB=B6=E4=B8=BA=20python=5Fver?= =?UTF-8?q?sion=20<=20'3.13'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit task.py 在 Python < 3.13 时需要 typing_extensions 的 TypeVar (PEP 696 default= 参数), 此前条件 < '3.10' 导致 3.10-3.12 环境 import 失败, ReadTheDocs (Python 3.11) 构建报 ModuleNotFoundError: No module named 'typing_extensions'. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 550db8f..4c2f4b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ classifiers = [ dependencies = [ "graphlib_backport >= 1.0.0; python_version < '3.9'", "pyyaml>=6.0.1", - "typing-extensions>=4.13.2; python_version < '3.10'", + "typing-extensions>=4.13.2; python_version < '3.13'", ] description = "Lightweight, type-safe DAG task scheduler with multi-strategy execution." keywords = ["async", "dag", "scheduler", "task", "workflow"]