From 673d997284f2527b98e75dd9ec28bef8145217b0 Mon Sep 17 00:00:00 2001 From: Ritchie Vink Date: Sat, 25 Oct 2025 13:09:43 +0200 Subject: [PATCH 1/3] feat(python): Stabilize decimal --- py-polars/src/polars/datatypes/classes.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/py-polars/src/polars/datatypes/classes.py b/py-polars/src/polars/datatypes/classes.py index e93c1ffee861..c370916fb690 100644 --- a/py-polars/src/polars/datatypes/classes.py +++ b/py-polars/src/polars/datatypes/classes.py @@ -418,11 +418,6 @@ class Decimal(NumericType): """ Decimal 128-bit type with an optional precision and non-negative scale. - .. warning:: - This functionality is considered **unstable**. - It is a work-in-progress feature and may not always work as expected. - It may be changed at any point without it being considered a breaking change. - Parameters ---------- precision @@ -443,12 +438,6 @@ def __init__( ) -> None: # Issuing the warning on `__init__` does not trigger when the class is used # without being instantiated, but it's better than nothing - from polars._utils.unstable import issue_unstable_warning - - issue_unstable_warning( - "the Decimal data type is considered unstable." - " It is a work-in-progress feature and may not always work as expected." - ) if precision is None: precision = 38 From 6f86eb293a5388d565918a3c8ccb803bcbbde609 Mon Sep 17 00:00:00 2001 From: Ritchie Vink Date: Sat, 25 Oct 2025 13:21:52 +0200 Subject: [PATCH 2/3] remove stale comment Co-authored-by: Ali Hamdan --- py-polars/src/polars/datatypes/classes.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/py-polars/src/polars/datatypes/classes.py b/py-polars/src/polars/datatypes/classes.py index c370916fb690..b36bfa0f944a 100644 --- a/py-polars/src/polars/datatypes/classes.py +++ b/py-polars/src/polars/datatypes/classes.py @@ -436,8 +436,6 @@ def __init__( precision: int | None = None, scale: int = 0, ) -> None: - # Issuing the warning on `__init__` does not trigger when the class is used - # without being instantiated, but it's better than nothing if precision is None: precision = 38 From 8b2a652e9a95d79b47ed1c8ac72230c840e35caf Mon Sep 17 00:00:00 2001 From: Ritchie Vink Date: Sat, 25 Oct 2025 13:22:57 +0200 Subject: [PATCH 3/3] fmt --- py-polars/src/polars/datatypes/classes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/py-polars/src/polars/datatypes/classes.py b/py-polars/src/polars/datatypes/classes.py index b36bfa0f944a..d71b28f3475c 100644 --- a/py-polars/src/polars/datatypes/classes.py +++ b/py-polars/src/polars/datatypes/classes.py @@ -436,7 +436,6 @@ def __init__( precision: int | None = None, scale: int = 0, ) -> None: - if precision is None: precision = 38