Skip to content

Commit 60a9316

Browse files
authored
chore: omit print when typing can't pull in
also updates the order for typing imports so the busio I2C import (only used for typing) isn't pulled in at all if we can't use typing
1 parent 8fcc3c3 commit 60a9316

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_ms8607.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040

4141
try:
4242
"""Needed for type annotations"""
43-
from busio import I2C
4443
from typing import Tuple, Any
4544

45+
from busio import I2C
4646
except ImportError:
47-
print("Couldnt import")
47+
pass
4848

4949

5050
_MS8607_HSENSOR_ADDR = const(0x40) #

0 commit comments

Comments
 (0)