Skip to content

Reduce blast-radius of UNSET in default_map#3240

Open
kdeldycke wants to merge 5 commits intopallets:stablefrom
kdeldycke:unset-in-default-map
Open

Reduce blast-radius of UNSET in default_map#3240
kdeldycke wants to merge 5 commits intopallets:stablefrom
kdeldycke:unset-in-default-map

Conversation

@kdeldycke
Copy link
Collaborator

@kdeldycke kdeldycke commented Mar 2, 2026

This PR reproduce the case pointed out at #3224 (comment) , as we have no coverage of the effect of UNSET in default_map.

The problem is that default management is spread across lookup_default, get_default and consume_value, so we need to make all them bullet-proof else they all leaks into each other because they evaluate UNSET as a truthy value. To make the code somewhat manageable, I added a private _default_map_has utility method whose role is to be the single source of truth.

So this PR is somewhat a follow-up on #3224, where we had to make the evaluation in lookup_default more complex to hide UNSET to fix #3145.

@kdeldycke kdeldycke added this to the 8.3.2 milestone Mar 2, 2026
@kdeldycke kdeldycke added bug f:parameters feature: input parameter types labels Mar 2, 2026
@kdeldycke kdeldycke changed the title Check effect of UNSET in default_map Reduce blast-radius of UNSET in default_map Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug f:parameters feature: input parameter types

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant