We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4ab9dd commit 16daf0bCopy full SHA for 16daf0b
arcade/sprite/base.py
@@ -341,7 +341,9 @@ def color(self, color: ColorLike):
341
self._color == color[0]
342
and self._color[1] == color[1]
343
and self._color[2] == color[2]
344
- and self._color[3] == color[3]
+ # Union types set off false positives in mypy:
345
+ # https://github.com/python/mypy/issues/1178
346
+ and self._color[3] == color[3] # type: tuple[int, int, int, int]
347
):
348
return
349
self._color = Color(color[0], color[1], color[2], color[3])
0 commit comments