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.
4646__version__ = "0.0.0-auto.0"
4747__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PCF8523.git"
4848
49- from time import struct_time
5049from adafruit_bus_device .i2c_device import I2CDevice
5150from adafruit_register import i2c_bit
5251from adafruit_register import i2c_bits
5352from adafruit_register import i2c_bcd_alarm
5453from 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
5661
5762STANDARD_BATTERY_SWITCHOVER_AND_DETECTION = 0b000
5863BATTERY_SWITCHOVER_OFF = 0b111
You can’t perform that action at this time.
0 commit comments