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
copy fails on collections.OrderedDict dataclass with required args #105736
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? |
Bug report
Related: huggingface/transformers#8978
Your environment
Linked PRs
The text was updated successfully, but these errors were encountered: