You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change Pydantic from_orm to model_validate (#284) (#285)
* change pydantic from_orm to model_validate in tests, except from those related to Forecast model (#284)
* change pydantic from_orm to model_validate in Forecast and ForecastValue models (#284)
Updated from_orm class method in Forecast and ForecastValue models, so they call model_validate instead of the deprecated from_orm method.
Created a class method model_validate in Forecast and ForecastValue models, so they work as from_orm class methods worked.
* Change from_orm call to model_validate in nationay.py
Updated Forecast and ForecastValue models from_orm call to model_validate call.
* Change from_orm call to model_validate in convert.py
Updated Forecast and ForecastValue models from_orm call to model_validate call.
* Add model_validate_latest method in Forecast class
Created model_validate_latest method that does the same thing as from_orm_latest. So it is consistent to the syntax of pydantic V2
* change pydantic from_orm to model_validate in tests related to Forecast and ForecastValue models
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* upgrade dockerfile to python 3.10
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Peter Dudfield <[email protected]>
0 commit comments