v2.14.0a1
Breaking Changes📦 pydanticView on GitHub →
⚠ 2 breaking✨ 2 features🐛 2 fixes🔧 4 symbols
Summary
This alpha release drops support for Python 3.9, removes `eval_type_backport()`, and introduces PyEmscripten platform tag support for future compatibility.
⚠️ Breaking Changes
- Support for Python 3.9 has been dropped. Code relying on Python 3.9 will no longer run.
- The `eval_type_backport()` function has been removed. Users should update their code to use standard type evaluation mechanisms.
Migration Steps
- Upgrade your environment to Python 3.10 or newer to continue using Pydantic.
- Remove any usage of the removed `eval_type_backport()` function.
✨ New Features
- Added PyEmscripten platform tag support in `pydantic-core` for future Pyodide 314.0 compatibility.
- The `hosts` parameter in `MultiHostUrl.build()` now accepts `None`.
🐛 Bug Fixes
- Added Mypy plugin workaround for dynamic models defined within functions.
- Mypy plugin now falls back to `create_model()` overload definition when `__base__` is set to a type variable.