pygame-community / pygame-ce

🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
https://pyga.me
767 stars 120 forks source link

Update docs of `Surface.get_(f)rect()` and `(F)Rect.move_to()` #2901

Closed damusss closed 4 weeks ago

damusss commented 1 month ago

As you can see from the changed docs I think I made them clearer. I didn't know you could pass size kwargs myself for a long time. The docs technically didn't hide them, but it's very unclear that they do that. Why?

Yes, they both say that the kwargs should match the attributes and they don't say those are not allowed, but I think this small update makes it more clear.

ankith26 commented 4 weeks ago

Merging this PR in now.

PS: we are on a merge freeze for the 2.5.0 release, so when this PR is merged onto main it will get released in the upcoming 2.5.1 release