Skip to content

Commit 08b0ecf

Browse files
committed
Correct gpio setter's val to be of type "byetarray"
1 parent 5584df4 commit 08b0ecf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adafruit_74hc595.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
from adafruit_bus_device import spi_device
3030

3131
try:
32-
import typing
33-
from _typing import ReadableBuffer
32+
import typing # pylint: disable=unused-import
3433
from microcontroller import Pin
3534
import busio
3635
except ImportError:
@@ -148,7 +147,7 @@ def gpio(self):
148147
return self._gpio
149148

150149
@gpio.setter
151-
def gpio(self, val: ReadableBuffer):
150+
def gpio(self, val: bytearray):
152151
self._gpio = val
153152

154153
with self._device as spi:

0 commit comments

Comments
 (0)