Skip to content

Commit 89233db

Browse files
committed
Linting
1 parent 4132410 commit 89233db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_ht16k33/segments.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ def _number(self, number):
218218
def set_digit_raw(self, index, bitmask):
219219
"""Set digit at position to raw bitmask value. Position should be a value
220220
of 0 to 3 with 0 being the left most character on the display.
221-
221+
222222
bitmask should be 2 bytes such as: 0xFFFF
223223
If can be passed as an integer, list, or tuple
224224
"""
225225
if not 0 <= index <= 3:
226226
return
227227

228-
if isinstance(bitmask, tuple) or isinstance(bitmask, list):
228+
if isinstance(bitmask, (tuple, list)):
229229
bitmask = bitmask[0] << 8 | bitmask[1]
230230

231231
# Set the digit bitmask value at the appropriate position.
@@ -269,7 +269,7 @@ def _put(self, char, index=0):
269269
if char == '.':
270270
self._set_buffer(index, self._get_buffer(index) | 0b10000000)
271271
return
272-
elif char in 'abcdef':
272+
if char in 'abcdef':
273273
character = ord(char) - 97 + 10
274274
elif char == '-':
275275
character = 16

0 commit comments

Comments
 (0)