From fb79d1c1d1766d30aa196a7597c5d13607f9a9ab Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 22 Dec 2021 11:15:02 -0600 Subject: [PATCH] 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 ``` --- shared-bindings/bitmaptools/__init__.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-bindings/bitmaptools/__init__.c b/shared-bindings/bitmaptools/__init__.c index ec26eab98e..df6292afec 100644 --- a/shared-bindings/bitmaptools/__init__.c +++ b/shared-bindings/bitmaptools/__init__.c @@ -255,7 +255,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(bitmaptools_rotozoom_obj, 0, bitmaptools_obj_rotozoom // requires at least 2 arguments (destination bitmap and source bitmap) //| -//| def alphablend(dest_bitmap, source_bitmap_1, source_bitmap_2, colorspace: displayio.Colorspace, factor1: float=.5, factor2: float=None): +//| 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: //| """Alpha blend the two source bitmaps into the destination. //| //| It is permitted for the destination bitmap to be one of the two