File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 12
12
13
13
try :
14
14
from typing import Optional
15
+ from PIL import Image
15
16
except ImportError :
16
17
pass
17
18
@@ -210,7 +211,7 @@ def fill(self, color):
210
211
if self ._auto_write :
211
212
self .show ()
212
213
213
- def image (self , img : "PIL. Image" ):
214
+ def image (self , img : Image ):
214
215
"""Set buffer to value of Python Imaging Library image. The image should
215
216
be a size equal to the display size."""
216
217
imwidth , imheight = img .size
Original file line number Diff line number Diff line change 9
9
"""
10
10
11
11
from time import sleep
12
- from busio import I2C
13
12
from adafruit_ht16k33 .ht16k33 import HT16K33
14
13
15
14
try :
16
15
from typing import Union , List , Tuple
16
+ from busio import I2C
17
17
except ImportError :
18
18
pass
19
19
You can’t perform that action at this time.
0 commit comments