JakobGM / patito

A data modelling layer built on top of polars and pydantic
MIT License
252 stars 23 forks source link

fix deprecation and require pydantic >=2.4.1 #51

Closed thomasaarholt closed 4 months ago

thomasaarholt commented 4 months ago

Pydantic 2.6.4 enforced a deprecation that led to this test error:

pydantic_core._pydantic_core.PydanticSerializationError: Error calling function `serialize_exprs`: DeprecationWarning: `write_json` is deprecated. It has been renamed to `Expr.meta.serialize`.

I pin pydantic to at least 2.4.1, which is the earliest version that doesn't trigger TypeError: unhashable type: 'ColumnInfo'.