8000 Fix bindings typing · litui/circuitpython@1cc4d63 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1cc4d63

Browse files
committed
Fix bindings typing
1 parent 14fc4a0 commit 1cc4d63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared-bindings/bitmaptools/__init__.c

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

269269
//|
270-
//| 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:
270+
//| def alphablend(dest_bitmap: displayio.Bitmap , source_bitmap_1: displayio.Bitmap, source_bitmap_2: displayio.Bitmap, colorspace: displayio.Colorspace, factor1: float=.5, factor2: Optional[float]=None) -> None:
271271
//| """Alpha blend the two source bitmaps into the destination.
272272
//|
273273
//| It is permitted for the destination bitmap to be one of the two

shared-bindings/usb/core/Device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ STATIC mp_obj_t usb_core_device_read(size_t n_args, const mp_obj_t *pos_args, mp
187187
MP_DEFINE_CONST_FUN_OBJ_KW(usb_core_device_read_obj, 2, usb_core_device_read);
188188

189189
//| def ctrl_transfer(self, bmRequestType, bRequest, wValue=0, wIndex=0,
190-
//| data_or_wLength: array.array = None, timeout = None) -> int:
190+
//| data_or_wLength: Optional[array.array] = None, timeout = None) -> int:
191191
//| """Do a control transfer on the endpoint 0. The parameters bmRequestType,
192192
//| bRequest, wValue and wIndex are the same of the USB Standard Control
193193
//| Request format.

0 commit comments

Comments
 (0)
0