-
Notifications
You must be signed in to change notification settings - Fork 218
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
thb/fix-283 #298
thb/fix-283 #298
Conversation
This reverts commit 55fe26d.
Validation on an empty list was not raising any exception when given values but an empty dict was. Make it uniform and make them both raise a MultipleInvalid exception on unwanted values.
Any plan to merge this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure about this since it is contrast with the issue mentioned here. @alecthomas Please look into this.
hi :) |
Hey @brmzkw I can't take a call on this alone. Would require @alecthomas approval for the same. Thanks. |
LGTM, thanks. |
since backward compat was broken, do you think you can make a release soon? |
@tbillon Care to clarify this change a bit:
|
This PR revert PR #215 to address #283. To make things more consistent, make an empty list raise an exception like an empty dict.
So an empty dict gets its
path
variable back:And now an empty list also raise a MultipleInvalid exception and set the
path
variable: