-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Implemented (F)Rect.move_to
#2165
Implemented (F)Rect.move_to
#2165
Conversation
Should this also support .move_to(x)
.move_to(x, y) ? |
Does this function duplicate with Rect.move()? Is it just a keyword version move()? |
No, |
I think that would be yes, to be consistent with
|
@yunline |
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
After thinking a bit more about it Should this even have |
Draft while removing |
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.
Aside from these nits code looks fine to me!
9355e49
to
5b688b0
Compare
4422c98
to
25f582c
Compare
7a595fe
to
cd03d1b
Compare
Change size getter Reduced indentation, updated versionadded formatting... Removed unused variable Fixed memory leaks (and added a semicolon) Changed stuff to only accept keyword arguments regen docs and formatting (for the billionth time already...) removed redundant call signatures should've done this from the beginning Should be fixed now, more test cases formatting... Type casting Implementation changes Doc changes Improved performance using METH_FASTCALL | METH_KEYWORDS Call PyTuple_GET_SIZE only once Updated docs with versionadded Changed function types Update rect.pyi updated error message Update rect.pyi
85c0d6e
to
004e89e
Compare
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 all seems fine to me 👍
Fixes #2156