openclimatefix / nowcasting_datamodel

Datamodel for the nowcasting project
6 stars 7 forks source link

Upgrade pydantic validator to field_validator (#281) #282

Closed Bvr4 closed 3 weeks ago

Bvr4 commented 3 weeks ago

Pull Request

Description

This PR refers to the issue #281 : pydantic: Upgrade validator to field_validator

I followed the instructions in the link provided and the recommendations in the Pydantic migration guide.

This lead to the subsequent modifications :

How Has This Been Tested?

I tested via the test framework as seen in the readme file. As the modification are minors, it should be enough.

Checklist:

peterdudfield commented 3 weeks ago

@all-contributors please add @Bvr4 for code

allcontributors[bot] commented 3 weeks ago

@peterdudfield

I've put up a pull request to add @Bvr4! :tada: