File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,18 @@ class is inherited by the chip-specific subclasses.
46
46
__version__ = "0.0.0-auto.0"
47
47
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PCF8523.git"
48
48
49
- from time import struct_time
50
49
from adafruit_bus_device .i2c_device import I2CDevice
51
50
from adafruit_register import i2c_bit
52
51
from adafruit_register import i2c_bits
53
52
from adafruit_register import i2c_bcd_alarm
54
53
from adafruit_register import i2c_bcd_datetime
55
- from busio import I2C
54
+
55
+ try :
56
+ import typing # pylint: disable=unused-import
57
+ from busio import I2C
58
+ from time import struct_time
59
+ except ImportError :
60
+ pass
56
61
57
62
STANDARD_BATTERY_SWITCHOVER_AND_DETECTION = 0b000
58
63
BATTERY_SWITCHOVER_OFF = 0b111
You can’t perform that action at this time.
0 commit comments