Message391492
In my usecase, I wanted to override the behaviour of __getitem__. I was able to accomplish this by subclassing EnumMeta.
Having done so, I was able to work around this bug as follows. Instead of trying to access the functional API via Enum (using an enum as the type parameter) and failing, I was able to succeed by accessing the functional API via subclass of Enum. Something like:
MyEnum2 = MyEnumBase1(...) |
|
Date |
User |
Action |
Args |
2021-04-21 07:00:23 | suhailsingh247 | set | recipients:
+ suhailsingh247, barry, eli.bendersky, ethan.furman, kamilturek |
2021-04-21 07:00:23 | suhailsingh247 | set | messageid: <1618988423.84.0.937619791566.issue43430@roundup.psfhosted.org> |
2021-04-21 07:00:23 | suhailsingh247 | link | issue43430 messages |
2021-04-21 07:00:23 | suhailsingh247 | create | |
|