-
Notifications
You must be signed in to change notification settings - Fork 11
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
Exception when creating copy of Option
object with Constraint
#166
Comments
Thanks for reporting. I'm quite busy these days but I'll see what I can do this week. Otherwise, @kdeldycke feel free to have a look at it :) |
Fix released in v3.0.1. |
Oh thank both of you for this! Thank you @MePsyDuck for taking the time to dig in into Click Extra internals, and post an issue here, even if you don't know Python. 🤗 I was not aware of this issue and used Huge respect for you @janluke for looking into it and cutting a release while being busy. 💪 Also busy myself so I'll make the effort to release a new bug-fix version of Click Extra too. 😅 |
Great to see the issue resolved in version 3.0.1! Thanks, @janluke , for the quick fix despite your busy schedule. |
I actually don't have a full understanding of it :D. I replicated the issue and read an error message that didn't make any sense: I just thought it might be related to |
Using:
Bug description
Any class that extends
cloup.constraints.Constraint
cannot be copied viacopy
package orcopy()
method.To Reproduce
Here's a minimal example to reproduce the issue
Output
A library that I use (click-extra) uses
deepmerge
to build a parameter tree. When attempting to make a deepcopy of theOption
object, a copy of theconstraint
is necessary, but instead it results in the exception mentioned above.Since my understanding of Python is limited, I'm unable to debug the issue on my own. However, I have managed to narrow down the problem to this point. If there's a way I can assist in resolving this issue, please let me know.
The text was updated successfully, but these errors were encountered: