-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Consistently validate location on VectorShape #5327
Conversation
VectorShape object so that it is consistent no matter where it is set from: * the constructor * the x and y setters * the location setter
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.
Validation consistency changes look good! I am concerned about breaking the correct semantic of the module set_location family functions.
…ng most of the code into shared-module.
@WarriorOfWire I've made those changes, keeping the only changes at the Do the |
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.
LGTM! Thanks for the PR @lesamouraipourpre and @WarriorOfWire for the review.
Will wait for thoughts from @WarriorOfWire before merging. |
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.
This is good, thanks!
Closes #5325
The x, y or location properties now use the same bounds validation whether set via the constructor or setters.
Tested with the code in #5325 which now raises Errors consistently when out of range.
@WarriorOfWire can you check if these changes are consistent with the rewrite and pass any test code you have?