v2.11.2
📦 pydanticView on GitHub →
🐛 6 fixes🔧 4 symbols
Summary
Pydantic v2.11.2 is a patch release that includes several bug fixes for private attributes, discriminated unions, and the mypy plugin, alongside a bump to pydantic-core v2.33.1.
🐛 Bug Fixes
- Ensure __pydantic_private__ exists before setting private attributes.
- Prevent overriding FieldInfo._complete when using fields from parent classes.
- Provide available definitions when applying discriminated unions to improve error reporting or resolution.
- Fix mypy plugin to prevent expanding root types for variables.
- Improve model fields deprecation messages by including the specific attribute name.
- Fix validation for parameterized mappings.