Skip to content

Commit

Permalink
Fix polars new requirement for docstring test
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasaarholt committed Aug 14, 2024
1 parent ef07ee1 commit 6c132df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/patito/pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ def from_row(
>>> df = pl.DataFrame(
... [["1", "product name", "1.22"]],
... schema=["product_id", "name", "price"],
... orient="row,
... )
>>> Product.from_row(df)
Product(product_id=1, name='product name', price=1.22)
Expand Down Expand Up @@ -378,6 +379,7 @@ def _from_polars(
>>> df = pl.DataFrame(
... [["1", "product name", "1.22"]],
... schema=["product_id", "name", "price"],
... orient="row,
... )
>>> Product._from_polars(df)
Product(product_id=1, name='product name', price=1.22)
Expand Down

0 comments on commit 6c132df

Please sign in to comment.