Skip to content

Commit 951e7b9

Browse files
committed
adds typing import to circumvent importing unnecessary libaries at run time - Issue #17.
1 parent 43a73d2 commit 951e7b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_mcp9600.py

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
from adafruit_register.i2c_bit import RWBit, ROBit
3737

3838
try:
39+
# Used only for typing
40+
import typing # pylint: disable=unused-import
3941
from busio import I2C
4042
except ImportError:
4143
pass

0 commit comments

Comments
 (0)