-
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
Always evaluate {} as {} #215
Always evaluate {} as {} #215
Conversation
Hey @tuukkamustonen , Travis build is failing. Please update the PR. Thanks |
381b610
to
5928c7c
Compare
@tusharmakkar08 Fixed, but I set Note that this is backwards-incompatible change: I see there's no |
Hey @tuukkamustonen It is preferred not to set Currently, there's no Thanks. |
@tusharmakkar08 Alright, sounds reasonable. I've been a bit busy but I'll update PR tomorrow! |
If you want a dict with any content, use 'dict', not Schema({}, extra=ALLOW_EXTRA).
dcb757f
to
2fe30ad
Compare
@tusharmakkar08 Removed the doctest flag and added |
I'm a little bit concerned about the backwards incompatibility, thoughts @tusharmakkar08? |
I was also a bit vehement initially but I guess since we merged #201 which solves #198, prioritising consistency over the backward incompatibility of list, we should go ahead with this too. The next release we can mark as MAJOR release according to semantic versioning standards. What do you think @alecthomas ? |
That's true. A major version bump sounds like a good idea too. +1 |
I think semantic versioning is a bit over-engineered. I see no real need in separating new features (MINOR) and bug fixes (PATCH). Theoretically it's nice, but I don't see much use of it. Many projects use the following semantics:
The reasoning is that adding new features doesn't break your code, so those changes are safe to include in a mere PATCH bump. I don't know if this versioning scheme has a name, but I think it's pretty common and would suggest it also here instead of true semantic versioning (as in semver.org). |
About the changes: there is still a chance to revert the list change and decline this one, too. Even with these changes, it's a bit weird that while Similarly for dicts, The "perfect" solution would be to by default always evaluate per value and require However, that would bring boilerplate and kill the voluptuous selling point so I'm just theorizing here... In the end, I do think this PR and the list PR that was merged do improve the situation a bit, but I feel there's something in the design that forces the concept a bit confusing. |
Hey @tuukkamustonen We have been following Semantic Versioning since the beginning of project since it ensures the backward compatibility (Moving from Regarding the changes related to #198, we knew that the changes were backward incompatible and we had a discussion over there regarding it. I also agree with the |
@alecthomas : Should we proceed with this and major version release? |
@alecthomas : I am planning to merge it (since I feel it encourages consistency) by today EOD. Please let me know if you have any objections. Thanks. |
Fixes #198