Reconcile default value passing and default activation#3239
Open
kdeldycke wants to merge 5 commits intopallets:stablefrom
Open
Reconcile default value passing and default activation#3239kdeldycke wants to merge 5 commits intopallets:stablefrom
kdeldycke wants to merge 5 commits intopallets:stablefrom
Conversation
a61dcee to
22351f8
Compare
22351f8 to
41ed4bc
Compare
Collaborator
Author
|
Ah sorry I fuck-up jungling with all these PRs to rebase. This commit 6c4a77b shouldn't have been pushed to |
Collaborator
Author
|
Ok, juste revert |
41ed4bc to
1296a4c
Compare
Refines test-cases introduced in pallets#3030
1296a4c to
4af30ca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an attempt to address #3111, and explore the consequences of reconciling the two meaning of the
defaultparameter:default=Truethen function getsTruedefault=Truethen function getsflag_valueA way to do that would be to consider
default=Trueas a sentinel (yes, you can call me the sentinel-guy), for non-boolean flags. We do it lazily in theget_defaultmethod to not interfere with class instanciation, which we implemented in #3225 to fix #3121.This has the side-effect of refining the test cases introduced in 06847da for #3030.