Python - Remove misleading __repr__
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<String> {
- Ok(format!(
- "Encoding {{ original: '{}', ... }}",
- self.encoding.get_original()
- ))
- }
-}
-
#[pymethods]
impl Encoding {
// #[getter]
