Skip to content

Commit 1cfedcb

Browse files
committed
fix CharacteristicBuffer.readinto
1 parent 71ef507 commit 1cfedcb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shared-bindings/_bleio/CharacteristicBuffer.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ static void check_for_deinit(bleio_characteristic_buffer_obj_t *self) {
8080
//| :rtype: bytes or None"""
8181
//| ...
8282
//|
83-
//| def readinto(self, buf: WriteableBuffer) -> Optional[int]:
83+
//| def readinto(self, buf: WriteableBuffer, nbytes: Optional[int] = None) -> Optional[int]:
8484
//| """Read bytes into the ``buf``. Read at most ``len(buf)`` bytes.
8585
//|
86+
//| You may reduce this maximum read using the ``n_bytes`` argument.
87+
//|
8688
//| :return: number of bytes read and stored into ``buf``
8789
//| :rtype: int or None (on a non-blocking error)"""
8890
//| ...

0 commit comments

Comments
 (0)