Skip to content

Commit 63d4431

Browse files
cubehouseclaude
andcommitted
fix(deps): require eval-type-backport on Python 3.9
Pydantic v2 evaluates PEP 604 union annotations (X | None) at model construction. Generated models use this syntax; on Python 3.9 the runtime lacks PEP 604 support, so pydantic needs eval-type-backport to interpret the annotations. No effect on Python 3.10+. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 918fb49 commit 63d4431

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ dependencies = [
2727
"httpx>=0.27",
2828
"pydantic>=2.6",
2929
"typing-extensions>=4.10",
30+
"eval-type-backport>=0.2; python_version < '3.10'",
3031
]
3132

3233
[project.urls]

0 commit comments

Comments
 (0)