machinable-org / machinable

A modular system for machinable research code
https://machinable.org
MIT License
34 stars 2 forks source link

Upgrade pydantic to v2 #480

Closed frthjf closed 1 year ago

frthjf commented 1 year ago

This upgrades to the pydantic rewritten version 2, meaning all API changes are now carrying over to machinable's Config models. Notably, there is no automatic transformation of dataclasses to pydantic models; users need to pick between unstructured dict, dataclass or pydantic.BaseModel to declare Configs depending on their needs.