-
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
Enum cannot set default value using a dictionary #389
Comments
Needs to be re-examined after #685 goes in, and before the 6.0 release. |
This now apparently works after #685 went in, though I regard the fact that it works as accidental, and it should not be assumed that it will carry on working in the future. The supported types for the |
If users should not assume this to continue working and yet it works, it might be better if it did not work at all... |
Actually, |
Agreed: I'd rather have it working, tested and documented, or not working at all. But adding new validation where there was none before is going to be a can of worms; we'd probably need at least a deprecation warning. This is something we could think about for 6.1.0 |
For future reference, #968 is going to make Enum support dictionary (and friends). |
Not a bug but suggestion for enhancement.
The following usage is currently not supported:
It would make sense to simply use
value = next(iter(values))
for the default value?The text was updated successfully, but these errors were encountered: