File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
5959MP_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//|
6464STATIC 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.
You can’t perform that action at this time.
0 commit comments