usb_cdc.Serial.readinto has no nbytes parameter

This commit is contained in:
Neradoc 2022-09-25 04:53:54 +02:00
parent 68386fa4d8
commit 2dbcd760fc

View File

@ -54,11 +54,12 @@
//| ...
//|
//| def readinto(self, buf: WriteableBuffer) -> int:
//| """Read bytes into the ``buf``. If ``nbytes`` is specified then read at most
//| that many bytes, subject to `timeout`. Otherwise, read at most ``len(buf)`` bytes.
//| """Read bytes into the ``buf``. Read at most ``len(buf)`` bytes. If `timeout`
//| is > 0 or ``None``, keep waiting until the timeout expires or ``len(buf)``
//| bytes are available.
//|
//| :return: number of bytes read and stored into ``buf``
//| :rtype: bytes"""
//| :rtype: int"""
//| ...
//|
//| def readline(self, size: int = -1) -> Optional[bytes]: