-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Raise error when iterating over patch objects. #2513
Conversation
@T4rk1n what's the issue with raising on Actually perhaps better than raising on
Another related thing I'm noticing, if someone tries to use part of a prop to set a different part, like this: patched_figure = Patch()
# seems reasonable, make the figure square?
patched_figure["layout"]["height"] = patched_figure["layout"]["width"]
return patched_figure it leads to infinite recursion inside |
Not sure I understand why raise on repr? That is for description of the object so maybe add it like you propose is good. |
Co-authored-by: Alex Johnson <johnson.alex.c@gmail.com>
Think that will require more thought, maybe check the value in setattr if it's another patch and prevent that? |
Equality comparators may be used with a filtering system so let's leave them out for now. |
# Conflicts: # CHANGELOG.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💃 Probably more we could do here, but you're right we should be cautious in case we add other functionality later.
# Conflicts: # CHANGELOG.md
Fix #2512