Skip to content

Commit 188509b

Browse files
committed
Merge branch 'feature/add-typing' of https://github.com/tekktrik/Adafruit_CircuitPython_HT16K33 into feature/add-typing
2 parents 54f4bca + 59cfabf commit 188509b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

adafruit_ht16k33/matrix.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
try:
1414
from typing import Optional
15+
from PIL import Image
1516
except ImportError:
1617
pass
1718

@@ -210,7 +211,7 @@ def fill(self, color):
210211
if self._auto_write:
211212
self.show()
212213

213-
def image(self, img: "PIL.Image"):
214+
def image(self, img: Image):
214215
"""Set buffer to value of Python Imaging Library image. The image should
215216
be a size equal to the display size."""
216217
imwidth, imheight = img.size

adafruit_ht16k33/segments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"""
1010

1111
from time import sleep
12-
from busio import I2C
1312
from adafruit_ht16k33.ht16k33 import HT16K33
1413

1514
try:
1615
from typing import Union, List, Tuple
16+
from busio import I2C
1717
except ImportError:
1818
pass
1919

0 commit comments

Comments
 (0)