X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/0d243252f0fb3a3e200df404884e3cc7d872ee13..33accffa7278997a55e237473c33880813def934:/displayio/_palette.py diff --git a/displayio/_palette.py b/displayio/_palette.py index 2424db1..63d98ee 100644 --- a/displayio/_palette.py +++ b/displayio/_palette.py @@ -18,7 +18,7 @@ displayio for Blinka """ from typing import Optional, Union, Tuple -import circuitpython_typing +from circuitpython_typing import ReadableBuffer from ._colorconverter import ColorConverter from ._colorspace import Colorspace from ._structs import InputPixelStruct, OutputPixelStruct, ColorStruct @@ -63,7 +63,7 @@ class Palette: def __setitem__( self, index: int, - value: Union[int, circuitpython_typing.ReadableBuffer, Tuple[int, int, int]], + value: Union[int, ReadableBuffer, Tuple[int, int, int]], ) -> None: """Sets the pixel color at the given index. The index should be an integer in the range 0 to color_count-1. @@ -139,6 +139,9 @@ class Palette: """Returns True if the palette index is transparent. Returns False if opaque.""" return self._colors[palette_index].transparent + def _finish_refresh(self): + pass + @property def dither(self) -> bool: """When true the palette dithers the output by adding