summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordherrada <dylan.herrada@adafruit.com>2020-07-03 11:38:02 -0400
committerdherrada <dylan.herrada@adafruit.com>2020-07-03 11:38:02 -0400
commite089862a6c7bcd8274ff45512f92b1330a01b3ae (patch)
treefce8cf82b9a403c3cc462fda702ac2b0d53938a8
parent0a657091c60e4c996f485508401370e7ae0f13b3 (diff)
Added type hints to usb_hid
-rw-r--r--shared-bindings/usb_hid/Device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared-bindings/usb_hid/Device.c b/shared-bindings/usb_hid/Device.c
index 99b7b9db9..14b441e44 100644
--- a/shared-bindings/usb_hid/Device.c
+++ b/shared-bindings/usb_hid/Device.c
@@ -43,7 +43,7 @@
//| """Not currently dynamically supported."""
//| ...
//|
-//| def send_report(self, buf: Any) -> Any:
+//| def send_report(self, buf: ReadableBuffer) -> None:
//| """Send a HID report."""
//| ...
//|
@@ -58,7 +58,7 @@ STATIC mp_obj_t usb_hid_device_send_report(mp_obj_t self_in, mp_obj_t buffer) {
}
MP_DEFINE_CONST_FUN_OBJ_2(usb_hid_device_send_report_obj, usb_hid_device_send_report);
-//| usage_page: Any = ...
+//| usage_page: int = ...
//| """The usage page of the device as an `int`. Can be thought of a category. (read-only)"""
//|
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 = {
(mp_obj_t)&mp_const_none_obj},
};
-//| usage: Any = ...
+//| usage: int = ...
//| """The functionality of the device as an int. (read-only)
//|
//| For example, Keyboard is 0x06 within the generic desktop usage page 0x01.