Skip to content

v2.13.0b3 2026-03-31

Pre-release
Pre-release

Choose a tag to compare

@Viicos Viicos released this 01 Apr 08:30
· 49 commits to main since this release
ee8a313

What's Changed

Packaging

New Features

Changes

  • Track extra fields set after init in model_fields_set by @navalprakhar in #12817
  • Do not include annotations that are not part of named tuple fields by @galuszkak in #12951
  • No longer fall back to trying all union members when the variant selected by discriminator fails to serialize by @navalprakhar in #12825

Fixes

  • Support discriminator metadata outside union type alias by @Viicos in #12785
  • Respect extras_schema when only extra_fields_behavior is set on the config in JSON Schema generation for typed dictionaries by @Viicos in #12810
  • Ensure __pydantic_private__ is set in model_construct() with user-defined model_post_init() by @nightcityblade in #12816
  • Handle all schema generation errors in InstanceOf by @Viicos in #12705
  • Allow dynamic models created with create_model() to be used as annotations in the Mypy plugin by @Br1an67 in #12879
  • Check for PlaceholderNode in Mypy plugin by @Viicos in #12929
  • Try other branches in smart union in case of omit errors by @mikeedjones in #12758
  • Patch unset attributes with MISSING during model serialization with exclude_unset by @davidhewitt in #12905
  • Ensure custom __init__() is called when using model_validate_strings() by @siewcapital in #12897

New Contributors

Full Changelog: v2.13.0b2...v2.13.0b3