17
0
Dominique Leuenberger adff0a5ce7 Accepting request 1347218 from devel:languages:python
- Update to 2.13.1:
  ## 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.
  ## New Features
  * Allow default factories of private attributes to take validated model
    data
  * Add ascii_only option to StringConstraints
  * Support exclude_if in computed fields
  * Push down constraints in unions involving MISSING sentinel
  * Add polymorphic_serialization option
  * Support Root models with Literal root types as discriminator field types
  ## Changes
  * Warn when serializing fixed length tuples with too few items
  * Track extra fields set after init in model_fields_set
  * Do not include annotations that are not part of named tuple fields
  * No longer fall back to trying all union members when the variant selected
    by discriminator fails to serialize
  * Use the complex() constructor unconditionally when validating complex
    Python data
  * Add support for three-tuple input for Decimal
  * Align @field_serializer logic with @field_validator
  * Make PydanticUserError a RuntimeError instead of a TypeError
  * Remove redundant serialization attempts in nested unions
  * Copy root value when making root model shallow copies
  * Ensure deterministic JSON schema defaults by sorting sets
  ## Fixes

OBS-URL: https://build.opensuse.org/request/show/1347218
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydantic?expand=0&rev=39
2026-04-18 19:31:33 +00:00
2026-04-16 05:48:54 +00:00
2026-04-16 05:48:54 +00:00
2026-04-16 05:48:54 +00:00
2026-04-16 05:48:54 +00:00
2026-04-16 05:48:54 +00:00
2026-04-16 05:48:54 +00:00
Description
No description provided
12 MiB
Languages
RPM Spec 100%