Skip to content

Commit 6dcbe4b

Browse files
committed
pylint fix & a typo
1 parent 9d82293 commit 6dcbe4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_bus_device/i2c_device.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class I2CDevice:
5757
device.write(bytes_read)
5858
"""
5959
def __init__(self, i2c, device_address):
60-
# Verify that a deivce with that address exists.
60+
# Verify that a device with that address exists.
6161
while not i2c.try_lock():
6262
pass
6363
try:
@@ -101,6 +101,7 @@ def write(self, buf, **kwargs):
101101
"""
102102
self.i2c.writeto(self.device_address, buf, **kwargs)
103103

104+
#pylint: disable-msg=too-many-arguments
104105
def write_then_readinto(self, out_buffer, in_buffer,
105106
out_start=0, out_end=None, in_start=0, in_end=None, stop=True):
106107
"""
@@ -136,6 +137,8 @@ def write_then_readinto(self, out_buffer, in_buffer,
136137
self.write(out_buffer, start=out_start, end=out_end, stop=stop)
137138
self.readinto(in_buffer, start=in_start, end=in_end)
138139

140+
#pylint: enable-msg=too-many-arguments
141+
139142
def __enter__(self):
140143
while not self.i2c.try_lock():
141144
pass

0 commit comments

Comments
 (0)