Convert annotation from pillow to circuitpython_typing
This commit is contained in:
parent
e4906149fd
commit
526f5109a6
3 changed files with 5 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ from adafruit_register.i2c_bit import RWBit
|
||||||
try:
|
try:
|
||||||
# Used only for typing
|
# Used only for typing
|
||||||
from typing import Optional, Tuple, Union # pylint: disable=unused-import
|
from typing import Optional, Tuple, Union # pylint: disable=unused-import
|
||||||
from PIL.ImageFile import ImageFile
|
from circuitpython_typing.pil import Image
|
||||||
from adafruit_framebuf import FrameBuffer
|
from adafruit_framebuf import FrameBuffer
|
||||||
import busio
|
import busio
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
@ -335,7 +335,7 @@ class IS31FL3741_colorXY(IS31FL3741):
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def image(self, img: Union[FrameBuffer, ImageFile]) -> None:
|
def image(self, img: Union[FrameBuffer, Image]) -> None:
|
||||||
"""Copy an in-memory image to the LED matrix. Image should be in
|
"""Copy an in-memory image to the LED matrix. Image should be in
|
||||||
24-bit format (e.g. "RGB888") and dimensions should match matrix,
|
24-bit format (e.g. "RGB888") and dimensions should match matrix,
|
||||||
this isn't super robust yet or anything.
|
this isn't super robust yet or anything.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
# SPDX-FileCopyrightText: 2022 Alec Delaney, for Adafruit Industries
|
# SPDX-FileCopyrightText: 2022 Alec Delaney, for Adafruit Industries
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Unlicense
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
|
pillow
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,5 @@
|
||||||
Adafruit-Blinka
|
Adafruit-Blinka
|
||||||
adafruit-circuitpython-framebuf
|
adafruit-circuitpython-framebuf
|
||||||
adafruit-circuitpython-busdevice
|
adafruit-circuitpython-busdevice
|
||||||
pillow
|
adafruit-circuitpython-typing~=1.6
|
||||||
adafruit-circuitpython-register
|
adafruit-circuitpython-register
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue