Skip to content

Commit

Permalink
docs(python): Mark hypothesis testing functionality as unstable (#17258)
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego authored Jun 28, 2024
1 parent 855b3fc commit 7f99de8
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions py-polars/polars/testing/parametric/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ def load_profile(
"""
Load a named (or custom) hypothesis profile for use with the parametric tests.
.. warning::
This functionality is currently considered **unstable**. It may be
changed at any point without it being considered a breaking change.
Parameters
----------
profile : {str, int}, optional
Expand Down Expand Up @@ -71,6 +75,10 @@ def set_profile(profile: ParametricProfileNames | int) -> None:
"""
Set the env var `POLARS_HYPOTHESIS_PROFILE` to the given profile name/value.
.. warning::
This functionality is currently considered **unstable**. It may be
changed at any point without it being considered a breaking change.
Parameters
----------
profile : {str, int}, optional
Expand Down
12 changes: 12 additions & 0 deletions py-polars/polars/testing/parametric/strategies/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def series( # noqa: D417
"""
Hypothesis strategy for producing Polars Series.
.. warning::
This functionality is currently considered **unstable**. It may be
changed at any point without it being considered a breaking change.
Parameters
----------
name : {str, strategy}, optional
Expand Down Expand Up @@ -284,6 +288,10 @@ def dataframes( # noqa: D417
"""
Hypothesis strategy for producing Polars DataFrames or LazyFrames.
.. warning::
This functionality is currently considered **unstable**. It may be
changed at any point without it being considered a breaking change.
Parameters
----------
cols : {int, columns}, optional
Expand Down Expand Up @@ -493,6 +501,10 @@ class column:
"""
Define a column for use with the `dataframes` strategy.
.. warning::
This functionality is currently considered **unstable**. It may be
changed at any point without it being considered a breaking change.
Parameters
----------
name : str
Expand Down
4 changes: 4 additions & 0 deletions py-polars/polars/testing/parametric/strategies/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ def lists(
"""
Create a strategy for generating lists of the given data type.
.. warning::
This functionality is currently considered **unstable**. It may be
changed at any point without it being considered a breaking change.
Parameters
----------
inner_dtype
Expand Down
4 changes: 4 additions & 0 deletions py-polars/polars/testing/parametric/strategies/dtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ def dtypes(
"""
Create a strategy for generating Polars :class:`DataType` objects.
.. warning::
This functionality is currently considered **unstable**. It may be
changed at any point without it being considered a breaking change.
Parameters
----------
allowed_dtypes
Expand Down
4 changes: 4 additions & 0 deletions py-polars/polars/testing/parametric/strategies/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def columns(
.. deprecated:: 0.20.26
Use :class:`column` instead in conjunction with a list comprehension.
.. warning::
This functionality is currently considered **unstable**. It may be
changed at any point without it being considered a breaking change.
Generate a fixed sequence of `column` objects suitable for passing to the
@dataframes strategy, or using standalone (note that this function is not itself
a strategy).
Expand Down

0 comments on commit 7f99de8

Please sign in to comment.