]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/commitdiff
use Optional type syntax for blit
authorfoamyguy <foamyguy@gmail.com>
Mon, 30 Jun 2025 13:52:39 +0000 (08:52 -0500)
committerfoamyguy <foamyguy@gmail.com>
Mon, 30 Jun 2025 13:52:39 +0000 (08:52 -0500)
bitmaptools/__init__.py

index ca5b27edda6462239ba3108629a4d30c0e40e73f..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.