diff --git a/py-polars/src/lazyframe/visitor/expr_nodes.rs b/py-polars/src/lazyframe/visitor/expr_nodes.rs index c3affcfdc539..e4edc3323b1a 100644 --- a/py-polars/src/lazyframe/visitor/expr_nodes.rs +++ b/py-polars/src/lazyframe/visitor/expr_nodes.rs @@ -36,22 +36,13 @@ pub struct Literal { dtype: PyObject, } -#[pyclass(name = "ClosedInterval")] -#[derive(Copy, Clone)] -pub enum PyClosedInterval { - Both, - Left, - Right, - None, -} - impl IntoPy for Wrap { fn into_py(self, py: Python<'_>) -> PyObject { match self.0 { - ClosedInterval::Both => PyClosedInterval::Both, - ClosedInterval::Left => PyClosedInterval::Left, - ClosedInterval::Right => PyClosedInterval::Right, - ClosedInterval::None => PyClosedInterval::None, + ClosedInterval::Both => "both", + ClosedInterval::Left => "left", + ClosedInterval::Right => "right", + ClosedInterval::None => "none", } .into_py(py) } diff --git a/py-polars/src/lib.rs b/py-polars/src/lib.rs index 975b429de0f1..cd20570839ec 100644 --- a/py-polars/src/lib.rs +++ b/py-polars/src/lib.rs @@ -107,7 +107,6 @@ fn _expr_nodes(_py: Python, m: &Bound) -> PyResult<()> { m.add_class::().unwrap(); m.add_class::().unwrap(); m.add_class::().unwrap(); - m.add_class::().unwrap(); // Options m.add_class::().unwrap(); m.add_class::().unwrap();