]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/blobdiff - bitmaptools/__init__.py
Merge pull request #166 from FoamyGuy/type_syntax
[hackapet/Adafruit_Blinka_Displayio.git] / bitmaptools / __init__.py
index dd0f1ee2081f5580b070115f463fb882abe58095..69be2d6869d392f0679312e7ce41a08f1e1ea17b 100644 (file)
@@ -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"