Skip to content

Commit 5376558

Browse files
committed
Linted
1 parent e7aa93f commit 5376558

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

adafruit_l3gd20.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ class L3GD20_I2C(L3GD20):
243243
def __init__(
244244
self, i2c, rng=L3DS20_RANGE_250DPS, address=0x6B, rate=L3DS20_RATE_100HZ
245245
):
246-
import adafruit_bus_device.i2c_device as i2c_device # pylint: disable=import-outside-toplevel
246+
from adafruit_bus_device import ( # pylint: disable=import-outside-toplevel
247+
i2c_device,
248+
)
247249

248250
self.i2c_device = i2c_device.I2CDevice(i2c, address)
249251
self.buffer = bytearray(2)
@@ -317,7 +319,9 @@ def __init__(
317319
baudrate=100000,
318320
rate=L3DS20_RATE_100HZ,
319321
): # pylint: disable=too-many-arguments
320-
import adafruit_bus_device.spi_device as spi_device # pylint: disable=import-outside-toplevel
322+
from adafruit_bus_device import ( # pylint: disable=import-outside-toplevel
323+
spi_device,
324+
)
321325

322326
self._spi = spi_device.SPIDevice(spi_busio, cs, baudrate=baudrate)
323327
self._spi_bytearray1 = bytearray(1)

0 commit comments

Comments
 (0)