Unable to pickle enum with nested frozen dataclass?
Open
Nobody has claimed this yet.
3.10
3.9 (EOL)
stdlib
topic-dataclasses
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
| BPO | 45546 |
|---|---|
| Nosy | @ericvsmith, @ethanfurman, @EricCousineau-TRI |
| Files |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2021-10-20.23:12:50.789>
labels = ['type-bug', 'library', '3.9', '3.10']
title = 'Unable to pickle enum with nested frozen dataclass?'
updated_at = <Date 2021-11-04.04:37:08.986>
user = 'https://github.com/EricCousineau-TRI'
bugs.python.org fields:
activity = <Date 2021-11-04.04:37:08.986>
actor = 'ethan.furman'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-10-20.23:12:50.789>
creator = 'Eric Cousineau'
dependencies = []
files = ['50378', '50384']
hgrepos = []
issue_num = 45546
keywords = []
message_count = 6.0
messages = ['404539', '404541', '404543', '404558', '404562', '404632']
nosy_count = 3.0
nosy_names = ['eric.smith', 'ethan.furman', 'Eric Cousineau']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue45546'
versions = ['Python 3.9', 'Python 3.10']
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the uploaded enum_test.py and enum_nested_type_test.py examples to reproduce the successful and failing pickling cases. Compare the nested frozen dataclass enum behavior and confirm the intended result from the examples; the work is done when the failing case can be pickled and unpickled without regressing the positive cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100