pygame
pygame copied to clipboard
Support collide_mask as collided argument in spritecollide
This PR attempts to fix #4089 by making the type of the collided argument of pygame.sprite.spritecollide and pygame.sprite.spritecollideany more strict/precise.
It also adds the pygame.sprite.collide_mask return type as one of the possible return types besides a boolean.