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
777 stars 123 forks source link

Formatting updates using newest version of clang-format #2744

Closed oddbookworm closed 4 months ago

ankith26 commented 4 months ago

There seems to be a new mypy fail too, as it catches a real issue. Maybe that can be handled in this PR as well, just gotta add something like

def colorspace(
    surf: Surface, color: Literal["YUV", "HSV"], dest_surf: Surface = ..., /
) -> Surface: ...

to camera.pyi

oddbookworm commented 4 months ago

There seems to be a new mypy fail too, as it catches a real issue. Maybe that can be handled in this PR as well, just gotta add something like

def colorspace(
    surf: Surface, color: Literal["YUV", "HSV"], dest_surf: Surface = ..., /
) -> Surface: ...

to camera.pyi

Updated. I also updated the doc signature to match