rheon.UnstableWarning

class rheon.UnstableWarning[source]

Bases: RheonWarning, UserWarning

A warning that a part of the API not yet promised to stay the same was used.

It is issued only when the environment variable RHEON_WARN_UNSTABLE is 1, as Polars issues its own UnstableWarning under POLARS_WARN_UNSTABLE. Once rheon.polars is imported, the warning issued is rp.UnstableWarning, a subclass of this class and of Polars’ class, so a filter on either, or on polars.exceptions.UnstableWarning, covers this library’s unstable parts.

Each unstable part says so in its docstring, and may change in any release without that counting as a breaking change:

Everything else in __all__ is promised.

Examples

print(issubclass(rheon.UnstableWarning, rheon.RheonWarning))
True

See also

  • RheonWarning, the base class every warning of this library shares.