Skip to content

Conversation

@holtkampjs
Copy link

Summary

Since release v8.3.0, the Sentinel.UNSET enum value has been bleeding to users of click where options have no default and the value is not required.

This commit contains a test which failed demonstrating the bleeding UNSET value and the fix in src/click/core.py to return to the previous behavior of returning None.

Issues mentioning this bug

fixes #3065
fixes #3066
fixes #3069

Moving forward

I'd like feedback on this.

  • Is this the right place to make the change?
  • Would you like to see more tests to cover this?
  • What changes are necessary for the CHANGES.rst? I've made a pass, but I cannot guarantee its correct.

holtkampjs and others added 3 commits September 20, 2025 14:12
Since release 8.3.0, the Sentinel.UNSET enum value has been bleeding to users of click where options have no default and the value is not required.

This commit contains a test which failed demonstrating the bleeding UNSET value and the fix in src/click/core.py to return to the previous behavior of returning None.
@holtkampjs holtkampjs closed this Sep 20, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant