python-anvil icon indicating copy to clipboard operation
python-anvil copied to clipboard

Pydantic 2.0 support

Open bitdivision opened this issue 1 year ago • 1 comments

Pydantic 2.0 was recently released

This library currently depends on Pydantic 1.8.2. This makes it incompatible with projects using Pydantic 2.0

Is there any appetite to upgrade the dependency to v2? The migration shouldn't be too difficult (see migration guide), so just trying to get an idea of whether it's worth submitting a PR for this. I would imagine that the reverse issue (people using Pydantic v1 with Anvil) will become an issue as well, though at least there is an obvious path to upgrade, particularly given that v2 allows the use of v1 features.

Interested to hear your thoughts!

bitdivision avatar Jul 24 '23 21:07 bitdivision

Would also love a path forward towards upgrading towards Pydantic 2.0

eronning avatar Aug 02 '23 17:08 eronning