X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/bd546915b27c327b4ff95b1a79eea082fee56c89..766a23823ecbfe5210808e0b566d2af2e4b3deff:/bitmaptools/__init__.py diff --git a/bitmaptools/__init__.py b/bitmaptools/__init__.py index dd0f1ee..69be2d6 100644 --- a/bitmaptools/__init__.py +++ b/bitmaptools/__init__.py @@ -147,10 +147,10 @@ def blit( *, x1: int = 0, y1: int = 0, - x2: int | None = None, - y2: int | None = None, - skip_source_index: int | None = None, - skip_dest_index: int | None = None, + x2: Optional[int] = None, + y2: Optional[int] = None, + skip_source_index: Optional[int] = None, + skip_dest_index: Optional[int] = None, ): """Inserts the source_bitmap region defined by rectangular boundaries (x1,y1) and (x2,y2) into the bitmap at the specified (x,y) location. @@ -532,6 +532,7 @@ class BlendMode: """ Options for modes to use by alphablend() function. """ + # pylint: disable=too-few-public-methods Normal = "bitmaptools.BlendMode.Normal" @@ -676,6 +677,7 @@ class DitherAlgorithm: """ Options for algorithm to use by dither() function. """ + # pylint: disable=too-few-public-methods Atkinson = "bitmaptools.DitherAlgorithm.Atkinson"