You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With python -m pytest -W 'ignore::DeprecationWarning' -v --ignore=tests/test_type_adapter.py, test collection succeeds, but there are many errors. A large portion appear to be the same TypeError: typing.Annotated cannot be used with issubclass(), but it appears there are also some unrelated assertion failures.
It’s currently possible to test Pydantic in a Python 3.13 virtualenv with:
Thanks for opening this feature request. Support for 3.13 is definitely something we want to do explicitly soon. I'll chat with the team re timeline and update here afterwards.
I'll pull this in once we get the new version of pyo3 into pydantic-core with 3.13 support. Hoping to have this included in v2.8 around the end of the month assuming we don't hit any major blockers.
Initial Checks
Description
Please consider supporting Python 3.13 soon – or at least commenting on a timeline for doing so.
In Fedora, we’ve managed to rebuild the
python-pydantic-core
package with Python 3.13, and all of its tests pass.However:
DeprecationWarning
from CPython 3.13 warns on FutureRef._evaluate/typing._eval_type not passingtype_params
#9613.pytest -W ignore::DeprecationWarning
, test collection errors due toTypeError: typing.Annotated cannot be used with issubclass()
, similar to the previous reports create_model fails to use type annotation of typing.Annotated #8534 and TypeError raised when using generics in python 3.13 #7942.python -m pytest -W 'ignore::DeprecationWarning' -v --ignore=tests/test_type_adapter.py
, test collection succeeds, but there are many errors. A large portion appear to be the sameTypeError: typing.Annotated cannot be used with issubclass()
, but it appears there are also some unrelated assertion failures.It’s currently possible to test Pydantic in a Python 3.13 virtualenv with:
Affected Components
.model_dump()
and.model_dump_json()
model_construct()
, pickling, private attributes, ORM modeThe text was updated successfully, but these errors were encountered: