-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
Description
Description
Pygame Group
objects should probably be typed as a Generic
. This would allow creating a Group
of a particular subclass of Sprite
without using assert
everywhere to check the types.
In order to keep Mypy happy in the common case in which you create a Group
without specifying a type (meaning generic Sprite
), something like python/mypy#4236 (comment) can be used.
devdanzin