Skip to content

Commit 0b9d572

Browse files
authored
Fix pylint errors
1 parent f47d38e commit 0b9d572

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

adafruit_midi/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,13 @@ def send(self, msg, channel=None):
152152
channel = self.out_channel
153153
if isinstance(msg, MIDIMessage):
154154
msg.channel = channel
155-
data = msg.__bytes__() # bytes(object) does not work in uPy
155+
# bytes(object) does not work in uPy
156+
data = msg.__bytes__() # pylint: disable=unnecessary-dunder-call
156157
else:
157158
data = bytearray()
158159
for each_msg in msg:
159160
each_msg.channel = channel
160-
data.extend(each_msg.__bytes__())
161+
data.extend(each_msg.__bytes__()) # pylint: disable=unnecessary-dunder-call
161162

162163
self._send(data, len(data))
163164

tests/test_MIDIMessage_unittests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# pylint: disable=invalid-name
21
# SPDX-FileCopyrightText: 2019 Kevin J. Walters for Adafruit Industries
32
#
43
# SPDX-License-Identifier: MIT
5-
# pylint: enable=invalid-name
4+
5+
# pylint: disable=invalid-name
66

77
import unittest
88

tests/test_MIDI_unittests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# pylint: disable=invalid-name
21
# SPDX-FileCopyrightText: 2019 Kevin J. Walters for Adafruit Industries
32
#
43
# SPDX-License-Identifier: MIT
5-
# pylint: enable=invalid-name
4+
5+
# pylint: disable=invalid-name
66

77
import unittest
88
from unittest.mock import Mock, call

0 commit comments

Comments
 (0)