From 4fb7cd1f8903fee336af9a654ade9e2cbcebb6d1 Mon Sep 17 00:00:00 2001 From: Max Muoto Date: Mon, 11 Nov 2024 12:58:31 -0600 Subject: [PATCH] fix(python): Use `cls` for `to_python` (#19726) --- py-polars/polars/datatypes/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-polars/polars/datatypes/classes.py b/py-polars/polars/datatypes/classes.py index bb538b4f01e8..64eaf13ea7b4 100644 --- a/py-polars/polars/datatypes/classes.py +++ b/py-polars/polars/datatypes/classes.py @@ -91,7 +91,7 @@ def from_python(cls, py_type: PythonDataType) -> PolarsDataType: # noqa: D102 ... @classmethod - def to_python(self) -> PythonDataType: # noqa: D102 + def to_python(cls) -> PythonDataType: # noqa: D102 ...