We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e057503 + 97d3944 commit 1bad8f5Copy full SHA for 1bad8f5
circuitpython_typing/device_drivers.py
@@ -10,6 +10,7 @@
10
"""
11
12
from adafruit_bus_device.i2c_device import I2CDevice
13
+from adafruit_bus_device.spi_device import SPIDevice
14
from typing_extensions import Protocol # Safety import for Python 3.7
15
16
@@ -18,3 +19,10 @@ class I2CDeviceDriver(Protocol):
18
19
"""Describes classes that are drivers utilizing `I2CDevice`"""
20
21
i2c_device: I2CDevice
22
+
23
24
+# pylint: disable=too-few-public-methods
25
+class SPIDeviceDriver(Protocol):
26
+ """Describes classes that are drivers utilizing `SPIDevice`"""
27
28
+ spi_device: SPIDevice
0 commit comments