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
939 stars 155 forks source link

Make `copy` methods explicit for linting #3129

Closed damusss closed 1 month ago

damusss commented 1 month ago

I get annoyed by the fact Object().copy() is blue (variable color) while Object().__copy__() is yellow (method color). I think the public API method should be rightfully have the method color along with the magic dunder API.

Am I really making a PR because of a method color in my specific IDE theme? Yes.

damusss commented 1 month ago

Maybe you don't have to do an invert at all, another option is to be explicit and use the full line in both variants

Good idea, I just did that.