Skip to content

Commit 5b0c6b0

Browse files
authored
linting update
1 parent d6b0108 commit 5b0c6b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

adafruit_ht16k33/matrix.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class Matrix16x8(HT16K33):
3333
def pixel(self, x, y, color=None):
3434
"""Get or set the color of a given pixel."""
3535
if not 0 <= x <= 15:
36-
return
36+
return None
3737
if not 0 <= y <= 7:
38-
return
38+
return None
3939
if x >= 8:
4040
x -= 8
4141
y += 8
@@ -47,9 +47,9 @@ class Matrix8x8(HT16K33):
4747
def pixel(self, x, y, color=None):
4848
"""Get or set the color of a given pixel."""
4949
if not 0 <= x <= 7:
50-
return
50+
return None
5151
if not 0 <= y <= 7:
52-
return
52+
return None
5353
x = (x - 1) % 8
5454
return super()._pixel(x, y, color)
5555

@@ -59,9 +59,9 @@ class Matrix8x8x2(HT16K33):
5959
def pixel(self, x, y, color=None):
6060
"""Get or set the color of a given pixel."""
6161
if not 0 <= x <= 7:
62-
return
62+
return None
6363
if not 0 <= y <= 7:
64-
return
64+
return None
6565
if color is not None:
6666
super()._pixel(y, x, (color & 0x01))
6767
super()._pixel(y + 8, x, (color >> 1) & 0x01)

0 commit comments

Comments
 (0)