Skip to content

Commit 5611bda

Browse files
committed
Fix PIL image type
1 parent 9ccba90 commit 5611bda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_is31fl3741/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
try:
3333
# Used only for typing
3434
from typing import Optional, Tuple, Union # pylint: disable=unused-import
35-
from PIL import Image
35+
from PIL.ImageFile import ImageFile
3636
from adafruit_framebuf import FrameBuffer
3737
import busio
3838
except ImportError:
@@ -335,7 +335,7 @@ def pixel(self, x: int, y: int, color: int = None) -> Union[int, None]:
335335
)
336336
return None
337337

338-
def image(self, img: Union[FrameBuffer, Image]) -> None:
338+
def image(self, img: Union[FrameBuffer, ImageFile]) -> None:
339339
"""Copy an in-memory image to the LED matrix. Image should be in
340340
24-bit format (e.g. "RGB888") and dimensions should match matrix,
341341
this isn't super robust yet or anything.

0 commit comments

Comments
 (0)