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
766 stars 120 forks source link

Update transform.get/set_smoothscale_backend typehint from str to Literal #2918

Closed damusss closed 2 weeks ago

damusss commented 3 weeks ago

It's like this for other functions (for example the ones requiring an image format) and since the valid options are just a few it makes sense to be clear in the typehint about them, so one can skip going to the docs. I omitted the deprecated ones, as other stubs do that too.