Skip to content

Commit 5167d60

Browse files
committed
Add eval_type_backport for Python 3.9 compatibility
Pydantic evaluates type annotations at runtime, and the `str | None` union syntax isn't supported in Python 3.9. This package provides backported type evaluation for older Python versions.
1 parent d869194 commit 5167d60

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
@@ -43,6 +43,7 @@ classifiers = [
4343
dependencies = [
4444
"httpx>=0.25.0",
4545
"pydantic>=2.0.0",
46+
"eval_type_backport>=0.2.0; python_version < '3.10'",
4647
]
4748

4849
[project.optional-dependencies]

0 commit comments

Comments
 (0)