Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Oct 25, 2024
1 parent 6de0c3e commit 59ce02f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions py-polars/polars/expr/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,8 @@ def to_struct(
--------
If `fields` is not provided, or if `fields` is a function and
`upper_bound` is not set, this may lead to unexpected results.
We allow this, but it is considered a bug in the user's query.
Future versions of Polars may be changed to raise an error in
these cases.
Examples
--------
Expand Down Expand Up @@ -1196,7 +1197,9 @@ def to_struct(
if not _eager:
otherwise = (
"otherwise the output schema will not be known, "
"causing subsequent operations to fail."
"causing subsequent operations to fail. "
"Future versions of Polars may be changed "
"to raise an error in these cases."
)

if fields is None:
Expand Down

0 comments on commit 59ce02f

Please sign in to comment.