Closed mthuurne closed 7 months ago
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.
json()
model_dump_json()
Revelant docs.
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.
pyproject.toml
poetry.lock
PR Description
Purpose
The
json()
method was renamed tomodel_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
pyproject.toml
poetry.lock
(locked versions not changed)