Update to Pydantic V2 (#588)

* Pydantic V2 support

* Support Python 3.8

* Mark as classmethod

* Remove max int validation

* Run poe format

* Merge develop

* Revert dataclasses import

* Fix revert
This commit is contained in:
Nicholas Gates
2024-07-23 14:43:31 +01:00
committed by GitHub
parent 8b59234856
commit 5fdd0bb24f
8 changed files with 345 additions and 155 deletions

View File

@@ -39,7 +39,7 @@ pytest = "^6.2.5"
pytest-asyncio = "^0.12.0"
pytest-cov = "^2.9.0"
pytest-mock = "^3.1.1"
pydantic = ">=1.10.16,<2"
pydantic = ">=2.0,<3"
protobuf = "^4"
cachelib = "^0.10.2"
tomlkit = ">=0.7.0"