Skip to content

Fix copy, deepcopy and pickle of Sentinel members - #3805

Merged
Rowlando13 merged 1 commit into
pallets:stablefrom
kdeldycke:fix-sentinel-copy-pickle
Aug 29, 2026
Merged

Fix copy, deepcopy and pickle of Sentinel members#3805
Rowlando13 merged 1 commit into
pallets:stablefrom
kdeldycke:fix-sentinel-copy-pickle

Conversation

@kdeldycke

Copy link
Copy Markdown
Collaborator

Just a small issue I encountered on Python 3.10, where Enum has no __deepcopy__. Now that every parameter have a sentinel, copy.deepcopy() of any Option, Argument or Command fails on Python 3.10. And pickle fails on every Python version. This PR fix this issue.

@kdeldycke kdeldycke added this to the 8.5.1 milestone Aug 28, 2026
@kdeldycke kdeldycke added the typing Type annotations and stubs label Aug 28, 2026
Comment thread CHANGES.md
@kdeldycke
kdeldycke force-pushed the fix-sentinel-copy-pickle branch from 83d425a to f58ca3e Compare August 29, 2026 06:54
@Rowlando13
Rowlando13 merged commit 4295457 into pallets:stable Aug 29, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typing Type annotations and stubs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants