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

Pydantic V2 compatibility #250

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

Pydantic V2 compatibility #250

wants to merge 9 commits into from

Conversation

frediy
Copy link

@frediy frediy commented Dec 11, 2023

Solves #246 WIP

  • remove deprected pydantic.fields.ModelField
  • replace deprecated cls.fields with cls.model_fields
  • replace deprecated cls.post_validations in validate_dictlike with @validator wrapper with pre=False

- remove deprected pydantic.fields.ModelField
- replace deprecated cls.__fields__ with cls.model_fields
- replace deprecated cls.post_validations in validate_dictlike with @validator wrapper with pre=False
@frediy frediy changed the title Pydantic V2 Pydantic V2 compatibility Dec 11, 2023
@frediy
Copy link
Author

frediy commented Dec 26, 2023

pytest on commit 3f4561c

56 failed, 167 passed, 1 skipped, 324 deselected, 396 warnings, 8 errors in 12.71s

@frediy
Copy link
Author

frediy commented Dec 28, 2023

pytest on commit be0e7a4

47 failed, 176 passed, 1 skipped, 324 deselected, 1 xfailed, 127 warnings, 7 errors in 11.84s

@frediy
Copy link
Author

frediy commented Dec 28, 2023

pytest on commit 5ff5219

34 failed, 195 passed, 1 skipped, 324 deselected, 2 xfailed, 97 warnings in 10.16s

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.

1 participant