pyo3/newsfragments/4210.added.md

168 B

Added #[pyclass(eq)] option to generate __eq__ based on PartialEq. Added #[pyclass(eq_int)] for simple enums to implement equality based on their discriminants.