Skip to content

Commit

Permalink
explicit opt-in for enum comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-northlander committed Nov 7, 2024
1 parent a3be759 commit fb6f9e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/src/tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use crate::morpheme::{PyMorphemeListWrapper, PyProjector};
///
/// C == long mode
//
#[pyclass(module = "sudachipy.tokenizer", name = "SplitMode", frozen)]
#[pyclass(module = "sudachipy.tokenizer", name = "SplitMode", eq, eq_int, frozen)]
#[derive(Clone, PartialEq, Eq, Copy, Debug)]
#[repr(u8)]
pub enum PySplitMode {
Expand Down

0 comments on commit fb6f9e9

Please sign in to comment.