diff --git a/bindings/python/src/encoding.rs b/bindings/python/src/encoding.rs index 8dfa4954..62a9f6f8 100644 --- a/bindings/python/src/encoding.rs +++ b/bindings/python/src/encoding.rs @@ -1,7 +1,6 @@ extern crate tokenizers as tk; use pyo3::prelude::*; -use pyo3::PyObjectProtocol; #[pyclass(dict)] #[repr(transparent)] @@ -15,16 +14,6 @@ impl Encoding { } } -#[pyproto] -impl PyObjectProtocol for Encoding { - fn __repr__(&self) -> PyResult { - Ok(format!( - "Encoding {{ original: '{}', ... }}", - self.encoding.get_original() - )) - } -} - #[pymethods] impl Encoding { // #[getter]