Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict Pydantic dependency to version 1.x or 2.x #114

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

mthuurne
Copy link
Contributor

PR Description

Purpose

The json() method was renamed to model_dump_json() in Pydantic 2.0. The old name is still supported in Pydantic 2.x, but is scheduled for removal in Pydantic 3.0.

Revelant docs.

Approach

To prevent the date picker breaking when Pydantic 3.0 is released, the declared Pydantic dependency is limited to versions 1.x and 2.x.

Issues solved in this PR

What has Changed

  • update dependency declaration in pyproject.toml
  • regenerate content hash for poetry.lock (locked versions not changed)

The `json()` method was renamed to `model_dump_json()` in Pydantic 2.0.
The old name is still supported in Pydantic 2.x, but is scheduled for
removal in Pydantic 3.0.

https://docs.pydantic.dev/2.5/migration/#changes-to-pydanticbasemodel

Closes monim67#113
@monim67 monim67 merged commit 04fe8cf into monim67:master Feb 9, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants