Closed musicinmybrain closed 2 days ago
@musicinmybrain,
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.
Definitely something we're prioritizing.
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 https://github.com/pydantic/pydantic/issues/9613.pytest -W ignore::DeprecationWarning
, test collection errors due toTypeError: typing.Annotated cannot be used with issubclass()
, similar to the previous reports https://github.com/pydantic/pydantic/issues/8534 and https://github.com/pydantic/pydantic/issues/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 mode