Skip to content

Commit 4729365

Browse files
committed
pylint disables (tips on not needing these welcome)
1 parent da525ba commit 4729365

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_sdcard.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def _wait_for_ready(self, card: SPI, timeout: float = 0.3) -> None:
202202

203203
# pylint: disable-msg=too-many-arguments
204204
# pylint: disable=no-member
205+
# pylint: disable-msg=too-many-branches
205206
# no-member disable should be reconsidered when it can be tested
206207
def _cmd(
207208
self,
@@ -248,6 +249,7 @@ def _cmd(
248249

249250
card.write(buf)
250251

252+
# pylint: disable-msg=too-many-nested-blocks
251253
# wait for the response (response[7] == 0)
252254
for _ in range(_CMD_TIMEOUT):
253255
card.readinto(buf, end=1, write_value=0xFF)
@@ -269,6 +271,7 @@ def _cmd(
269271
return buf[0]
270272
return -1
271273

274+
# pylint: enable-msg=too-many-branches
272275
# pylint: enable-msg=too-many-arguments
273276

274277
# pylint: disable-msg=too-many-arguments

0 commit comments

Comments
 (0)