Fix usb_hid.Device constructor typing

descriptor -> report_descriptor
This commit is contained in:
Michael Himing 2022-03-01 12:44:15 +11:00
parent a13c320509
commit 1fe9eea225

View File

@ -31,7 +31,7 @@
//| class Device: //| class Device:
//| """HID Device specification""" //| """HID Device specification"""
//| //|
//| def __init__(self, *, descriptor: ReadableBuffer, usage_page: int, usage: int, report_ids: Sequence[int], in_report_lengths: Sequence[int], out_report_lengths: Sequence[int]) -> None: //| def __init__(self, *, report_descriptor: ReadableBuffer, usage_page: int, usage: int, report_ids: Sequence[int], in_report_lengths: Sequence[int], out_report_lengths: Sequence[int]) -> None:
//| """Create a description of a USB HID device. The actual device is created when you //| """Create a description of a USB HID device. The actual device is created when you
//| pass a `Device` to `usb_hid.enable()`. //| pass a `Device` to `usb_hid.enable()`.
//| //|