Closed sorXCode closed 9 months ago
Thank you for the PR, I'll check it this week
@roman-right, I've fixed the pre-commit hook failure.
I also discovered that the general_plain_validator_function
was deprecated and the new with_info_plain_validator_function
introduced in Pydantic_core 2.10 (PR here, release here), whereas the GitHub Action in this repo uses Pydantic v2.3 (Pydantic_core 2.6.3
), hence the failure.
What do you think could be done in this scenario? Perhaps adding an "if block" for Pydantic >2.3 is safe?
Thank you for the PR! I'll check it again and merge by the end of this week
It looks like it doesn't work with Pydantic V2 (Or should I update my gh-actions?)
It looks like this PR is not in work more. If no, feel free to open a new one.
Purpose
This PR fixes some deprecation warnings while using Pydantic v2.
Context
There were deprecation warnings while running pytest in my PydanticV2
(2.4.1)
project.