fix type annotations
This commit is contained in:
parent
b8b20faa20
commit
cc95b71d64
|
@ -158,7 +158,7 @@ mp_obj_t storage_erase_filesystem(void) {
|
|||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_0(storage_erase_filesystem_obj, storage_erase_filesystem);
|
||||
|
||||
//| def configure_usb(enabled: True) -> None:
|
||||
//| def configure_usb(enabled: bool = True) -> None:
|
||||
//| """Configure the USB mass storage device.
|
||||
//| Enable or disable presenting ``CIRCUITPY`` as a USB mass storage device.
|
||||
//| By default, the device is enabled and ``CIRCUITPY`` is visible.
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
//| """Tuple of all active HID device interfaces."""
|
||||
//|
|
||||
|
||||
//| def configure_usb(devices: Optional[Sequence[Device, ...]]) -> None:
|
||||
//| def configure_usb(devices: Optional[Sequence[Device]]) -> None:
|
||||
//| """Configure the USB HID devices that will be available.
|
||||
//| Can be called in ``boot.py``, before USB is connected.
|
||||
//|
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
//| """Tuple of all MIDI ports. Each item is ether `PortIn` or `PortOut`."""
|
||||
//|
|
||||
|
||||
//| def configure_usb(enabled: True) -> None:
|
||||
//| def configure_usb(enabled: bool = True) -> None:
|
||||
//| """Configure the USB MIDI device.
|
||||
//| Can be called in ``boot.py``, before USB is connected.
|
||||
//|
|
||||
|
|
Loading…
Reference in New Issue