Skip to content

Commit e089862

Browse files
committed
Added type hints to usb_hid
1 parent 0a65709 commit e089862

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared-bindings/usb_hid/Device.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
//| """Not currently dynamically supported."""
4444
//| ...
4545
//|
46-
//| def send_report(self, buf: Any) -> Any:
46+
//| def send_report(self, buf: ReadableBuffer) -> None:
4747
//| """Send a HID report."""
4848
//| ...
4949
//|
@@ -58,7 +58,7 @@ STATIC mp_obj_t usb_hid_device_send_report(mp_obj_t self_in, mp_obj_t buffer) {
5858
}
5959
MP_DEFINE_CONST_FUN_OBJ_2(usb_hid_device_send_report_obj, usb_hid_device_send_report);
6060

61-
//| usage_page: Any = ...
61+
//| usage_page: int = ...
6262
//| """The usage page of the device as an `int`. Can be thought of a category. (read-only)"""
6363
//|
6464
STATIC mp_obj_t usb_hid_device_obj_get_usage_page(mp_obj_t self_in) {
@@ -74,7 +74,7 @@ const mp_obj_property_t usb_hid_device_usage_page_obj = {
7474
(mp_obj_t)&mp_const_none_obj},
7575
};
7676

77-
//| usage: Any = ...
77+
//| usage: int = ...
7878
//| """The functionality of the device as an int. (read-only)
7979
//|
8080
//| For example, Keyboard is 0x06 within the generic desktop usage page 0x01.

0 commit comments

Comments
 (0)