Update write() function definition

This commit is contained in:
Alec Delaney 2022-08-30 11:18:06 -04:00 committed by GitHub
parent bf9f329a61
commit 0d8dab7381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,7 +231,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(busio_uart___exit___obj, 4, 4, busio_
//| ... //| ...
//| //|
//| def write(self, buf: WriteableBuffer) -> Optional[int]: //| def write(self, buf: ReadableBuffer) -> Optional[int]:
//| """Write the buffer of bytes to the bus. //| """Write the buffer of bytes to the bus.
//| //|
//| *New in CircuitPython 4.0:* ``buf`` must be bytes, not a string. //| *New in CircuitPython 4.0:* ``buf`` must be bytes, not a string.