pydantic
Compatibility Shim for Pydantic.
In order to support both Pydantic v1 and Pydantic v2, we need to make sure we import the module correctly:
- For
pydantic~=2.0there is a workingv1module. - For
pydantic==1.10.15there is a brokenv1module (with nofields). - For
pydantic<1.10.14there is nov1module.