Closed andreale28 closed 1 year ago
I think we use lock Pydantic as 1.7.0
or maybe upgrade Patito to use Pydantic V2.
Hey, @andreale28, thanks for the bug report!
You were quite correct in this being a problem with our incompatibility with Pydantic V2. For now I have accepted @thomasaarholt PR (thanks!), pinning Pydantic to version <= 2.0. This change should be live in version 0.5.1 soon.
I will try to follow up on Pydantic v2 support as soon as I can in the future.
Again, thanks!
Hi there.
Recently, I have caught a problem when
import patito as pt
, which returnsTypeError
:Before this issue, I already used Patito successfully in my project. After I take a look, it seems that recent Patito is not compatible with Pydantic v2 which is recently introduced. In the
pyproject.toml
,pydantic
is constraint to>= 1.7.0
that makes the poetry automatically usesPydantic=2.0.3
and I think this causes the issue.Could you take a look? Many thanks.