-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
copy fails on collections.OrderedDict dataclass with required args #105736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@ringohoffman I can confirm the For the |
|
CC @rhettinger |
Here's a smaller reproducer:
|
For copying to work in this case, the Also, even before copying, the example class isn't functional for the pure python |
@ericsnowcurrently Eric, do you have any thoughts on how we can (and/or whether we should) modify |
I don't have much stake in this, but that situation certainly gives me pause. We're already dealing with a dict subclass, which makes things dicey. Furthermore, subclassing is necessarily cooperative, particularly when |
…ersion (pythonGH-108098) (cherry picked from commit 20cc90c) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
…ersion (pythonGH-108098) (cherry picked from commit 20cc90c) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Is there anything left to do here, or can we close this issue? |
The downstream issue (huggingface/transformers#8978) is closed, but the reproducer still fails on main. I think there's still more to do. |
Bug report
Related: huggingface/transformers#8978
Your environment
Linked PRs
The text was updated successfully, but these errors were encountered: