Skip to content

Commit 2257507

Browse files
committed
code format and pylint exception
1 parent fefd387 commit 2257507

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

adafruit_lis3mdl.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,16 @@ class LIS3MDL:
228228
_range = RWBits(2, _LIS3MDL_CTRL_REG2, 5)
229229
_reset = RWBit(_LIS3MDL_CTRL_REG2, 2)
230230

231-
def __init__(self, i2c_bus: I2C, address: int = _LIS3MDL_DEFAULT_ADDRESS,
232-
performance_mode: PerformanceMode = PerformanceMode.MODE_ULTRA,
233-
data_rate: Rate = Rate.RATE_155_HZ,
234-
range_: Range = Range.RANGE_4_GAUSS,
235-
operation_mode: OperationMode = OperationMode.CONTINUOUS) -> None:
236-
# pylint: disable=no-member
231+
def __init__(
232+
self,
233+
i2c_bus: I2C,
234+
address: int = _LIS3MDL_DEFAULT_ADDRESS,
235+
performance_mode: PerformanceMode = PerformanceMode.MODE_ULTRA,
236+
data_rate: Rate = Rate.RATE_155_HZ,
237+
range_: Range = Range.RANGE_4_GAUSS,
238+
operation_mode: OperationMode = OperationMode.CONTINUOUS,
239+
) -> None:
240+
# pylint: disable=no-member,too-many-arguments
237241
self.i2c_device = i2c_device.I2CDevice(i2c_bus, address)
238242
if self._chip_id != _LIS3MDL_CHIP_ID:
239243
raise RuntimeError("Failed to find LIS3MDL - check your wiring!")

0 commit comments

Comments
 (0)