rstudio / vetiver-python

Version, share, deploy, and monitor models.
https://rstudio.github.io/vetiver-python/stable/
MIT License
59 stars 17 forks source link

Update Pydantic usage for v2 compatibility #185

Closed isabelizimm closed 1 year ago

isabelizimm commented 1 year ago

resolves #184

isabelizimm commented 1 year ago

Tests are failing as there's increased type specificity (particularly with numpy self-reporting types rather than pydantic choosing the type). These changes are work for both pydantic<2.0 and pydantic>2.0, so we shouldn't have to worry about backwards compatibility.

isabelizimm commented 1 year ago

For now, spacy is not compliant with pydantic v2. These changes will give some deprecation warnings in tests, but overall are v1 and v2 compatible.