pandaSDMX icon indicating copy to clipboard operation
pandaSDMX copied to clipboard

Pydantic V2 compatibility

Open frediy opened this issue 1 year ago • 3 comments

Solves https://github.com/dr-leo/pandaSDMX/issues/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

frediy avatar Dec 11 '23 11:12 frediy

pytest on commit 3f4561c

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

frediy avatar Dec 26 '23 23:12 frediy

pytest on commit be0e7a4

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

frediy avatar Dec 28 '23 01:12 frediy

pytest on commit 5ff5219

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

frediy avatar Dec 28 '23 22:12 frediy