Skip to content

Commit fb79d1c

Browse files
committed
bitmaptools: add missing types
These diagnostics occurred, but weren't treated as errors: ``` [WARN] Missing return type: alphablend on line 38 [WARN] Missing argument type: dest_bitmap on line 38 [WARN] Missing argument type: source_bitmap_1 on line 38 [WARN] Missing argument type: source_bitmap_2 on line 38 ```
1 parent 166793f commit fb79d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/bitmaptools/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(bitmaptools_rotozoom_obj, 0, bitmaptools_obj_rotozoom
255255
// requires at least 2 arguments (destination bitmap and source bitmap)
256256

257257
//|
258-
//| def alphablend(dest_bitmap, source_bitmap_1, source_bitmap_2, colorspace: displayio.Colorspace, factor1: float=.5, factor2: float=None):
258+
//| def alphablend(dest_bitmap: displayio.Bitmap , source_bitmap_1: displayio.Bitmap, source_bitmap_2: displayio.Bitmap, colorspace: displayio.Colorspace, factor1: float=.5, factor2: float=None) -> None:
259259
//| """Alpha blend the two source bitmaps into the destination.
260260
//|
261261
//| It is permitted for the destination bitmap to be one of the two

0 commit comments

Comments
 (0)