Skip to content

Commit 257ae11

Browse files
mivertowskiclaude
andcommitted
fix: add eval_type_backport for Python 3.9 Pydantic compatibility
Pydantic evaluates type annotations at runtime, so `int | None` syntax fails on Python 3.9. The eval_type_backport package provides runtime support for PEP 604 union syntax on older Python versions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0c15371 commit 257ae11

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 @@ classifiers = [
2727
dependencies = [
2828
"httpx>=0.25",
2929
"pydantic>=2.0",
30+
"eval_type_backport>=0.1.0; python_version < '3.10'",
3031
]
3132

3233
[project.urls]

0 commit comments

Comments
 (0)