Download Latest Version v2.12.0 2025-10-07 source code.tar.gz (2.0 MB)
Email in envelope

Get an email when there's a new version of pydantic

Home / v2.12.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-10-07 3.1 kB
v2.12.0 2025-10-07 source code.tar.gz 2025-10-07 2.0 MB
v2.12.0 2025-10-07 source code.zip 2025-10-07 2.2 MB
Totals: 3 Items   4.1 MB 6

v2.12.0 (2025-10-07)

[!NOTE] Check out the blog post for release highlights.

This is the final 2.12 release. It features the work of 20 external contributors and provides useful new features, along with initial Python 3.14 support. Several minor changes (considered non-breaking changes according to our versioning policy) are also included in this release. Make sure to look into them before upgrading.

Changes (see the 2.12.0a1 and 2.12.0b1 releases for additional changes since 2.11):

Packaging

  • Update V1 copy to v1.10.24 by @Viicos in #12338

New Features

  • Add extra parameter to the validate functions by @anvilpete in #12233
  • Add exclude_computed_fields serialization option by @Viicos in #12334
  • Add preverse_empty_path URL options by @Viicos in #12336
  • Add union_format parameter to JSON Schema generation by @Viicos in #12147
  • Add __qualname__ parameter for create_model by @Atry in #12001

Fixes

  • Do not try to infer name from lambda definitions in pipelines API by @Viicos in #12289
  • Use proper namespace for functions in TypeAdapter by @Viicos in #12324
  • Use Any for context type annotation in TypeAdapter by @inducer in #12279
  • Expose FieldInfo in pydantic.fields.__all__ by @Viicos in #12339
  • Respect validation_alias in @validate_call by @Viicos in #12340
  • Use Any as context annotation in plugin API by @Viicos in #12341
  • Use proper stacklevel in warnings when possible by @Viicos in #12342

New Contributors

Source: README.md, updated 2025-10-07