Revert "Using serde (serde_pyo3) to get __str__ and __repr__ easily."

This reverts commit 86138337fc.
This commit is contained in:
Nicolas Patry
2024-08-02 18:42:57 +02:00
parent 86138337fc
commit a010f6b75c
8 changed files with 7 additions and 27 deletions

View File

@ -44,8 +44,8 @@ impl PyNormalizedStringMut<'_> {
/// Normalizer will return an instance of this class when instantiated.
#[pyclass(dict, module = "tokenizers.normalizers", name = "Normalizer", subclass)]
#[derive(Clone, Serialize, Deserialize)]
#[serde(transparent)]
pub struct PyNormalizer {
#[serde(flatten)]
pub(crate) normalizer: PyNormalizerTypeWrapper,
}