-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check Enum.create_editor; add tests #965
Comments
The current code on master does work for |
That depends. What was the error message, and what was its underlying cause? |
The exact cause of the bug is trying to use the I verified that the editor works fine if the exception is caught, but this will break the automatic update on external value changes. Shall I open an issue in |
However, I can't think of good common use cases where we would want an enumeration of different kind of types. |
This is the code that allows This is after a bunch of ifs fall through. I think we should just set Off-topic: When I was reviewing #988 and looking into this issue, I discovered this traitsui issue: enthought/traitsui#782 |
enthought/traitsui#782 is not entirely orthogonal: because if we want the
I'd think this |
Closed by #988. |
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 theBaseEnum
__init__
method, but that code never gets executed, and doesn't belong in the__init__
in the first place.The text was updated successfully, but these errors were encountered: