rheon.UnstableWarning¶
- class rheon.UnstableWarning[source]¶
Bases:
RheonWarning,UserWarningA 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_UNSTABLEis1, as Polars issues its ownUnstableWarningunderPOLARS_WARN_UNSTABLE. Oncerheon.polarsis imported, the warning issued isrp.UnstableWarning, a subclass of this class and of Polars’ class, so a filter on either, or onpolars.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:
the state file of
rheon.polars.stream.with_windows();the written form of a formula target’s tree, in a TOML file or a saved state;
rheon.polars.ModelBank.fit_predict_arrow(),rheon.polars.ModelBank.predict_arrow()andrheon.ArrowStruct;the modules
rheon.polars.sim,rheon.corrandrheon.polars._gbdt.
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.