Skip to content

Commit 5d3949e

Browse files
author
Jason Symons
committed
Revert change from NoneType to 0
1 parent 5611bda commit 5d3949e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_is31fl3741/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def pixel_addrs(x: int, y: int) -> Tuple[int, ...]:
293293
"""Calculate a device-specific LED offset for an X,Y 2D pixel."""
294294
raise NotImplementedError("Supported in subclasses only")
295295

296-
def fill(self, color: int = 0) -> None:
296+
def fill(self, color: Optional[int] = None) -> None:
297297
"""Set all pixels to a given RGB color.
298298
299299
:param color: Packed 24-bit color value (0xRRGGBB).
@@ -308,7 +308,7 @@ def fill(self, color: int = 0) -> None:
308308
self[addrs[self.g_offset]] = green
309309
self[addrs[self.b_offset]] = blue
310310

311-
def pixel(self, x: int, y: int, color: int = None) -> Union[int, None]:
311+
def pixel(self, x: int, y: int, color: Optional[int] = None) -> Union[int, None]:
312312
"""
313313
Set or retrieve RGB color of pixel at position (X,Y).
314314

0 commit comments

Comments
 (0)