Skip to content

Commit

Permalink
Fix for typing error.
Browse files Browse the repository at this point in the history
  • Loading branch information
pvcraven committed Feb 27, 2020
1 parent 11f1084 commit a9cb1cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arcade/sprite.py
Expand Up @@ -18,6 +18,7 @@
from typing import Any
from typing import Optional
from typing import TYPE_CHECKING
from typing import cast

import PIL.Image

Expand Down Expand Up @@ -725,6 +726,7 @@ def _set_color(self, color: Color):
and self._color[2] == color[2]:
return
elif len(color) == 4:
color = cast(List, color) # Prevent typing error
if self._color[0] == color[0] \
and self._color[1] == color[1] \
and self._color[2] == color[2]\
Expand Down

0 comments on commit a9cb1cb

Please sign in to comment.