Zum Inhalt springen

Pydantic Release Notes

Einträge
39
Quellen
1
Zuletzt aktualisiert

Folge Pydantic, um die Release Notes in deinen Feed zu holen.

Pydantic

v2.14.4 2026-11-19

v2.14.4 (2026-11-19)

What's Changed

Packaging

  • Bump jiter to v0.19.0 by @Viicos in #14247. This addresses memory issues introduced by the previous jiter release.

Changes

  • Don't mark subclasses of @deprecated classes as deprecated in JSON Schema by @Viicos in #14325

Performance

  • Cache UTC TzInfo instance by @Viicos in #14256
  • Skip schema deduplication for alternatives with a single schema by @fredheir in #14274

Fixes

  • Exclude InitVar fields from the serialization JSON schema by @Alvi-Rahman in #14223
  • Fix more issues about GC tracking in pydantic-core by @Viicos in #14253
  • Fix validation constraints leaking into the Decimal JSON Schema by @aidxhxr in #14254
  • Fix model signature when a field alias is the name used for extra kwargs by @aidxhxr in #14255
  • Fix display of Callable parameters in type representations by @aidxhxr in #14261 …

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

v2.14.3 2026-11-04

v2.14.3 (2026-11-04)

What's Changed

Packaging

  • Build wheels for GraalPy 3.13 by @msimacek in #14136.

    The previous v2.14.2 release published GraalPy 3.11 wheels, which were not working due to a PyO3 version bump. A CI workflow issue made it so that the wheel wasn't tested before publishing. This is now fixed: starting in v2.14.3, we no longer publish GraalPy 3.11 wheels, and GraalPy 3.13 wheels are now published together with the existing 3.12 one.

Performance

  • Improve schema generation for fixed type handlers by @alexmojaki in #14130
  • Skip general schema dispatch for builtin scalars by @alexmojaki in #14141
  • Skip annotation handler setup when annotations are empty by @alexmojaki in #14149
  • Fix quadratic serialization time with per-index include/exclude on sequences by @Viicos in #14160
  • Avoid type lookups when checking for None during serialization by @Viicos in #14167
  • Improve performance of model serialization by @Viicos in #14171
  • Improve performance of dict serialization by @Viicos in #14172 …

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

v1.10.27 2026-10-29

v1.10.27 (2026-10-29)

This is the last V1 Pydantic release. V1 support (including the pydantic.v1 namespace in Pydantic V2) fully ends after this release.

This release contains three security fixes, that were also included in the pydantic.v1 namespace of the v2.14.2 release.

Full Changelog: https://github.com/pydantic/pydantic/compare/v1.10.26...v1.10.27

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

v2.14.2 2026-10-29

v2.14.2 (2026-10-29)

This release addresses 2 security issues, https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25 and https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29.

Packaging

  • Bump PyO3 to 0.30.1, jiter to 0.18.0, use PyFrozenDict by @Viicos in #14003
  • Bump speedate to v0.18.0 by @Viicos in #14007
  • Publish pydantic-core wheels for PyPy 8.0 (pp80 ABI) by @Viicos in #14083

Performance

  • Avoid Python tuple allocation during model fields validation by @Viicos in #13955
  • Lazily call repr of values during nested union serialization by @Viicos in #14082
  • Skip decorator field checks when no field decorators exist by @alexmojaki in #14111
  • Avoid heap allocation for small JSON model field buffers by @alexmojaki in #14113

Fixes

  • Make JSON validation by iteration consistent with Python approach by @davidhewitt in #13275.

    JSON validation now handles field lookup and extra data the same way as Python validation. In particular, keys that only match an …

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

Pydantic v2.14.1 2026-10-11

Pydantic v2.14.1 verbessert die Validierungsleistung, behebt mehrere Fehler bei Schema- und Typbehandlungen und unterstützt zusätzliche TypedDict- und Sequenzfälle.

What's Changed

Performance

  • Avoid Python tuple allocation during model fields validation by @Viicos in #13955
  • Avoid unnecessary extra dict allocation in model validation by @Viicos in #13956

Fixes

  • Fix arguments-v3 schema with variadic keywords by @Viicos in #13954
  • Fix TypeError on ForwardRef on Python 3.10.0 by @Viicos in #13964
  • Support closed and extra_items via inheritance in TypedDict by @Viicos in #13967
  • Enforce the max_digits whole-digits limit in the Python Decimal validator by @Viicos in #13972
  • Reject out-of-range int inputs for timedelta by @Viicos in #13973
  • Support named tuples in Sequence validation by @Viicos in #13978

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.14.0...v2.14.1

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

Pydantic 2.14.0 veröffentlicht

What's Changed

The highlights of the v2.14 release are available in the blog post. 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.

This release drops support for Python 3.9 and adds support for Python 3.15.

Two security fixes are fixed by this release: https://github.com/pydantic/pydantic/security/advisories/GHSA-gj4f-r7mf-jjxh and https://github.com/pydantic/pydantic/security/advisories/GHSA-955g-x97g-8mcp.

New Features

  • Add support for multiple_of constraint in fraction and timedelta core schemas by @Viicos in #13873
  • Add __namespace__ parameter to create_model() by @Viicos in #13895

Changes

  • Add an ordered-dict core schema by @Viicos in #13796
  • Add a counter core schema by @Viicos in #13824
  • Do not mutate model_config attribute by @Viicos in #13825
  • Reject newlines in NameEmail validation by @Viicos in #13897

Fixes …

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

Pydantic 2.14.0b2: Vollständige Unterstützung für Python-3.15-Funktionen

Die Vorabversion 2.14.0b2 ergänzt volle Unterstützung für Python-3.15-Funktionen wie frozendict und TypeForm, stabilisiert den MISSING-Sentinel-Typ und erlaubt unter anderem jedes CoreSchema als Serialisierung sowie lazy imports.

What's Changed

This pre-release adds full support for Python 3.15 specific features, such as support for frozendict, making use of TypeForm and stabilizing the MISSING sentinel type.

New Features

  • Allow any CoreSchema to be used as serialization by @Viicos in #13680

  • Add support for frozendict type by @Viicos in #13634

  • Allow dict, frozendict and frozenset as defaultdict default factories by @Viicos in #13623

  • Add support for TypeForm by @Viicos in #13459.

    This adds support for static type checking where a type form is expected. For instance, type adapters:

    from pydantic import TypeAdapter
    
    ta = TypeAdapter(int | str)
    assert_type(ta.validate_python(1), int | str)
    
  • Add support for lazy imports by @Viicos in #13776 …

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

Pydantic 2.14.0b1: Erste Beta mit Python-3.15-Basisunterstützung

Die erste Beta von Pydantic 2.14 bietet erste Unterstützung für Python 3.15, EllipsisType, den Typ Fraction in pydantic-core, konstante Vergleichszeit für SecretStr und SecretBytes sowie Leistungsverbesserungen beim Modellaufbau.

What's Changed

This is the first beta release of the 2.14 version, providing some new features and performance improvements for model builds.

This release is the first to provide initial support for Python 3.15, although not all 3.15 specific features are supported yet.

Packaging

  • Add agent skills by @Viicos in #13193

New Features

  • Add support for EllipsisType by @Viicos in #13484
  • Add initial support for Python 3.15 by @Viicos in #13587

Changes

  • Populate __slots__ from generic class during parameterization by @Viicos in #13243
  • Avoid using explicit Any in the Mypy plugin by @Viicos in #13196
  • Support Fraction type in pydantic-core by @Viicos in #13339
  • Use constant-time comparison for SecretStr and SecretBytes types by @Viicos in #13518
  • Fix application of constraints in pipeline API by @Viicos in #13516
  • Optimize type lookup logic in core schema generation by @Viicos in #13573 …

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

Pydantic 2.13.5: Fehlerbehebungen bei Validatoren, GC und Smart Unions

Pydantic v2.13.5 behebt Fehler: Validatoren lassen sich bei gesetzten Plugins wiederverwenden, in pydantic-core fehlende GC-Traversierung wurde bei einigen Struct-Feldern und beim GeneralFieldsSerializer ergänzt, und validierte Modellfelder werden in Smart Unions nur noch einmal gezählt.

v2.13.5 (2026-08-28)

What's Changed

Fixes

  • Allow reuse of validators when plugins are set by @Viicos in #13535
  • Fix missing GC traversal on some pydantic-core struct fields by @Viicos in #13624
  • Fix missing GC traversal in pydantic-core for GeneralFieldsSerializer by @Viicos in #13629
  • Count validated model fields once in smart unions by @tamird in #13731

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

Pydantic 2.13.5: Fehlerbehebungen

Version 2.13.5 erlaubt die Wiederverwendung von Validatoren bei gesetzten Plugins, behebt fehlende GC-Traversierung in pydantic-core und zählt validierte Modellfelder in Smart Unions nur einmal.

v2.13.5 (2026-08-28)

What's Changed

Fixes

  • Allow reuse of validators when plugins are set by @Viicos in #13535
  • Fix missing GC traversal on some pydantic-core struct fields by @Viicos in #13624
  • Fix missing GC traversal in pydantic-core for GeneralFieldsSerializer by @Viicos in #13629
  • Count validated model fields once in smart unions by @tamird in #13731

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

Pydantic 2.14.0a1

Pydantic 2.14.0a1 unterstützt PyEmscripten, beendet Python-3.9-Support, entfernt eval_type_backport() und optimiert model_copy() sowie Korrekturen.

v2.14.0a1 (2026-05-22)

What's Changed

Packaging

  • Add PyEmscripten platform tag support by @Viicos, @greateggsgreg and @sinaatalay in #13199: pydantic-core now has a 3.14 wheel published with the pyemscripten_2026_0 platform tag. Note that this wheel can only be used with Pyodide 314.0 and greater, still in development. It is recommended to wait for the final 314.0 release (and for Pydantic to publish a new wheel in a future 2.14 release).

Changes

  • Accept None in MultiHostUrl.build()'s hosts parameter by @Viicos in #13068
  • Drop support for Python 3.9 by @Viicos in #13070
  • Remove support for eval_type_backport() by @Viicos in #13133
  • Only deepcopy non-updated fields in model_copy() by @connorcarpenter15 in #13087

Fixes

  • Add Mypy plugin workaround for dynamic models defined in functions by @ilevkivskyi in #13177 …

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

Pydantic 2.13.4

Pydantic 2.13.4 aktualisiert Abhängigkeiten, passt Linker-Flags auf macOS an und bewahrt RootModel-Metadaten.

v2.13.4 (2026-05-06)

What's Changed

Packaging

  • Bump libc from 0.2.155 to 0.2.185 by @Viicos in #13109
  • Adapt pydantic-core linker flags on macOS by @washingtoneg and @Viicos in #13147

Fixes

  • Preserve RootModel core metadata by @Viicos in #13129

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.13.3...v2.13.4

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

Pydantic 2.13.0

Pydantic 2.13.0 aktualisiert den v1-Namespace, behebt einen Segmentation Fault, erlaubt Default-Factories mit Modelldaten und warnt bei zu kurzen Tupeln.

v2.13.0 (2026-04-13)

The highlights of the v2.13 release are available in the blog post. 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.

This release contains the updated pydantic.v1 namespace, matching version 1.10.26 which includes support for Python 3.14.

What's Changed

See the beta releases for all changes sinces 2.12.

Packaging

  • Add zizmor for GitHub Actions workflow linting by @Viicos in #13039
  • Update jiter to v0.14.0 to fix a segmentation fault on musl Linux by @Viicos in #13064

New Features

  • Allow default factories of private attributes to take validated model data by @Viicos in #13013

Changes

  • Warn when serializing fixed length tuples with too few items by @arvindsaripalli in #13016

Fixes

  • Change type of Any when synthesizing _build_sources for BaseSettings.__init__() signature in the mypy plugin by @Viicos in #13049 …

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

Pydantic v2.13.0b3

Neue Beta-Version mit riscv64-Build, ascii_only-Option für StringConstraints, exclude_if-Unterstützung in berechneten Feldern und weiteren Verbesserungen.

<!-- Release notes generated using configuration in .github/release.yml at v2.13.0b3 -->

What's Changed

Packaging

  • Add riscv64 build target for manylinux by @boosterl in #12723

New Features

  • Add ascii_only option to StringConstraints by @ai-man-codes in #12907
  • Support exclude_if in computed fields by @andresliszt in #12748
  • Push down constraints in unions involving MISSING sentinel by @Viicos in #12908

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

Pydantic v2.13.0b2

Behebt Fehler im V1-Namespace, ermöglicht beliebige Typen in validate_as() und korrigiert die Walrus-Operator-Präzedenz in UrlConstraints.

What's Changed

Fixes

  • Fix backported V1 namespace by @Viicos in #12855
  • Allow any type form to be used in validate_as() by @bledden in #12846
  • Fix walrus operator precedence in UrlConstraints.__get_pydantic_core_schema__() by @bysiber in #12826

New Contributors

  • @bledden made their first contribution in #12846
  • @bysiber made their first contribution in #12827

Originalquelle(öffnet in neuem Tab)Problem melden

Pydantic

Pydantic v2.13.0b1

Erste Beta von 2.13 mit polymorphic_serialization-Option, V1.10.26-Unterstützung für Python 3.14 und Zusammenführung von pydantic-core in das Hauptrepo.

This is the first beta release of the 2.13 version, mainly providing bug fixes and performance improvements for validation and serialization.

Notable changes include:

  • Add a new polymorphic_serialization option, solving issues with serialize_as_any introduced in 2.12.
  • Latest V1.10.26 release under the pydantic.v1 namespace. This version includes support for Python 3.14.
  • The pydantic-core repository was merged inside the main pydantic one.

What's Changed

Packaging

  • Bump Rust url dependency from 2.5.4 to 2.5.7 in pydantic-core by @dependabot[bot] in #12508
  • Bump Rust minimum version to 1.88, use edition 2024 by @davidhewitt and @Viicos in #12551 and #12752
  • Bump PyO3 to 0.28, jiter to 0.13 by @davidhewitt in #12767

New Features

  • Add polymorphic_serialization option by @davidhewitt in #12518
  • Support Root models with Literal root types as discriminator field types by @YassinNouh21 in #12680

Changes

  • Migrate pydantic-core CI by @Viicos in #12752 …

Originalquelle(öffnet in neuem Tab)Problem melden