Skip to content

Commit ef0473b

Browse files
Moved busio import inside the try block for typing
1 parent d36de71 commit ef0473b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_as726x.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@
3030
import time
3131
from adafruit_bus_device.i2c_device import I2CDevice
3232
from micropython import const
33-
import busio
3433

3534
try:
3635
from typing import Tuple
36+
37+
# This is only needed for typing
38+
import busio # pylint: disable=unused-import
3739
except ImportError:
3840
pass
3941

0 commit comments

Comments
 (0)