After #2002 it's legal to use `#[pyclass]` on enums that have only unit variants. However, there's a few pieces which need finishing (at a minimum) before releasing this change in 0.16: - [ ] The generated class most likely wants a `__richcmp__` implementation so that comparisons work as expected - [ ] `__repr__` implementation - [ ] The generated class may want a metaclass to prevent subclassing - [ ] Docs in the guide - [ ] It would be nice to support custom discriminants a-la #834 - [ ] CHANGELOG entry
After #2002 it's legal to use
#[pyclass]on enums that have only unit variants.However, there's a few pieces which need finishing (at a minimum) before releasing this change in 0.16:
__richcmp__implementation so that comparisons work as expected__repr__implementation