Skip to content

Bump pydantic from 2.4.2 to 2.5.0

Ronan Amicel requested to merge dependabot-pip-pydantic-2.5.0 into main

Bumps pydantic from 2.4.2 to 2.5.0.

Release notes

Sourced from pydantic's releases.

v2.5.0 2023-11-13

v2.5.0 (2023-11-13)

GitHub release

The code released in v2.5.0 is functionally identical to that of v2.5.0b1.

What's Changed

Packaging

  • Update pydantic-core from 2.10.1 to 2.14.1, significant changes from these updates are described below, full changelog here
  • Update to pyright==1.1.335 by @​Viicos in #8075

New Features

Changes

  • Significant Change: replace ultra_strict with new smart union implementation, the way unions are validated has changed significantly to improve performance and correctness, we have worked hard to absolutely minimise the number of cases where behaviour has changed, see the PR for details - by @​davidhewitt in pydantic/pydantic-core#867
  • Add support for instance method reassignment when extra='allow' by @​sydney-runkle in #7683
  • Support JSON schema generation for Enum types with no cases by @​sydney-runkle in #7927
  • Warn if a class inherits from Generic before BaseModel by @​alexmojaki in #7891

Performance

Fixes

... (truncated)

Changelog

Sourced from pydantic's changelog.

v2.5.0 (2023-11-13)

GitHub release

The code released in v2.5.0 is functionally identical to that of v2.5.0b1.

What's Changed

Packaging

  • Update pydantic-core from 2.10.1 to 2.14.1, significant changes from these updates are described below, full changelog here
  • Update to pyright==1.1.335 by @​Viicos in #8075

New Features

Changes

  • Significant Change: replace ultra_strict with new smart union implementation, the way unions are validated has changed significantly to improve performance and correctness, we have worked hard to absolutely minimise the number of cases where behaviour has changed, see the PR for details - by @​davidhewitt in pydantic/pydantic-core#867
  • Add support for instance method reassignment when extra='allow' by @​sydney-runkle in #7683
  • Support JSON schema generation for Enum types with no cases by @​sydney-runkle in #7927
  • Warn if a class inherits from Generic before BaseModel by @​alexmojaki in #7891

Performance

Fixes

... (truncated)

Commits

Merge request reports