You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue №2722 opened by vnmabus at 2021-09-17 01:29:02
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.
Comments
The text was updated successfully, but these errors were encountered:
Issue №2722 opened by vnmabus at 2021-09-17 01:29:02
Description
Pygame
Group
objects should probably be typed as aGeneric
. This would allow creating aGroup
of a particular subclass ofSprite
without usingassert
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 genericSprite
), something like python/mypy#4236 (comment) can be used.Comments
The text was updated successfully, but these errors were encountered: