bpo-38659: [Enum] add _simple_enum decorator by ethanfurman · Pull Request #25497 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

Instead of raising ValueError on mismatch, raise a TypeError instead.
- make simple_enum and test_simple_enum private
- add _old_convert_ to enable testing `IntEnum._convert_`
  and `IntFlag._convert_` transformations
- add tests for the `_convert_`s

pablogsal added a commit to pablogsal/cpython that referenced this pull request

Apr 23, 2021