refactor: 移除多余的override装饰器并整理依赖

1.  移除graph.py和storage.py中多余的typing-extensions override装饰器
2.  精简pyproject.toml的依赖项,移除不必要的typing-extensions
3.  添加mypy作为开发依赖
4.  修复示例代码的类型注解和废弃的赋值使用
This commit is contained in:
2026-06-21 08:28:23 +08:00
parent 22ae4b0084
commit 56c018e72e
5 changed files with 327 additions and 26 deletions
+2 -4
View File
@@ -10,10 +10,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
dependencies = [
"graphlib_backport >= 1.0.0; python_version < '3.9'",
"typing-extensions>=4.13.2",
]
dependencies = ["graphlib_backport >= 1.0.0; python_version < '3.9'"]
description = "Lightweight, type-safe DAG task scheduler with multi-strategy execution."
keywords = ["async", "dag", "scheduler", "task", "workflow"]
license = { text = "MIT" }
@@ -30,6 +27,7 @@ dev = [
"basedpyright>=1.39.8",
"hatch>=1.14.2",
"httpx>=0.28.0",
"mypy>=1.14.1",
"prek>=0.4.5",
"pytest-asyncio>=0.24.0",
"pytest-cov>=5.0.0",