Add support for Python 3.15
Author: ViicosCreated May 11, 2026Updated Sep 29, 2026
Labelsfeature request
- Update to a yet-to-be-released PyO3 version adding 3.15 support (https://github.com/PyO3/pyo3/pull/6014): https://github.com/pydantic/pydantic/pull/13301
- Update
MISSINGsentinel to reflect the latest implementation. Should we wait for mypy to support it before making it non-experimental? - Add support for lazy imports (will require work to catch errors when accessing
sys.modules). - Add support for
frozendicttype.- Add initial support: https://github.com/pydantic/pydantic/pull/13634
- Use https://github.com/PyO3/pyo3/pull/6174 once we bump PyO3 to 0.30.
- Investigate if we need to do anything related to frame pointers.
- Use
TypeFormwhenever possible (inTypeAdapter, but also in several other places), once mypy and pyright supports it. - Investigate https://github.com/pydantic/pydantic/issues/12778 and related changes to the
base64module. Done in https://github.com/pydantic/pydantic/pull/13587.
Source: pydantic/pydantic