Skip to content

Commit e27faad

Browse files
Fix starlette dependency for Python 3.9 compatibility
Starlette 0.30.0+ requires Python >= 3.10. Add environment markers to pin starlette < 0.30.0 for Python 3.9 while allowing latest for 3.10+. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f7470bd commit e27faad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ dev = [
132132
"pytest-cov >= 4.1.0",
133133
"coverage[toml] >= 7.0",
134134
"httpx >= 0.24.0",
135-
"starlette >= 0.27.0",
135+
"starlette >= 0.27.0, < 0.30.0; python_version < '3.10'",
136+
"starlette >= 0.27.0; python_version >= '3.10'",
136137
"ruff >= 0.4.0",
137138
"mypy >= 1.7.0",
138139
"pre-commit >= 3.5.0",

0 commit comments

Comments
 (0)