Skip to content

Commit

Permalink
Update doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Jan 24, 2024
1 parent 2c6a7b5 commit 2a899cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py-polars/polars/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1273,9 +1273,9 @@ def warn_unstable(cls, active: bool | None = True) -> type[Config]:
Examples
--------
>>> pl.Config.warn_unstable(True) # doctest: +SKIP
>>> pl.col("a").qcut(5)
polars.warnings.UnstableWarning: `qcut` is an unstable feature.
"""
>>> pl.col("a").qcut(5) # doctest: +SKIP
UnstableWarning: `qcut` is considered unstable. It may be changed at any point without it being considered a breaking change.
""" # noqa: W505
if active is None:
os.environ.pop("POLARS_WARN_UNSTABLE", None)
else:
Expand Down

0 comments on commit 2a899cc

Please sign in to comment.