I'm suspicious of the code in Enum.create_editor, and it isn't exercised by the test suite. We should double check that it works as intended before the 6.1.0 release (and ideally, also add tests).
We should also check that the editor behaves sensibly for the various possible input types (which changed in #889).
For example: is that values = self really right? For another, there's some code that looks editor-related in the BaseEnum __init__ method, but that code never gets executed, and doesn't belong in the __init__ in the first place.
I'm suspicious of the code in
Enum.create_editor, and it isn't exercised by the test suite. We should double check that it works as intended before the 6.1.0 release (and ideally, also add tests).We should also check that the editor behaves sensibly for the various possible input types (which changed in #889).
For example: is that
values = selfreally right? For another, there's some code that looks editor-related in theBaseEnum__init__method, but that code never gets executed, and doesn't belong in the__init__in the first place.