Skip to content

Commit 88e8a3c

Browse files
authored
Merge pull request #9540 from elpekenin/fix/_bleio-stubs
Fix `_bleio` doc comments
2 parents 89fc22d + 0ebbb39 commit 88e8a3c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

shared-bindings/_bleio/Characteristic.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
//| as part of remote Services."""
2525
//| ...
2626

27+
//| @classmethod
2728
//| def add_to_service(
28-
//| self,
29+
//| cls,
2930
//| service: Service,
3031
//| uuid: UUID,
3132
//| *,

shared-bindings/_bleio/CharacteristicBuffer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ static void raise_error_if_not_connected(bleio_characteristic_buffer_obj_t *self
2525
//| """Accumulates a Characteristic's incoming values in a FIFO buffer."""
2626
//|
2727
//| def __init__(
28-
//| self, characteristic: Characteristic, *, timeout: int = 1, buffer_size: int = 64
28+
//| self, characteristic: Characteristic, *, timeout: float = 1.0, buffer_size: int = 64
2929
//| ) -> None:
3030
//| """Monitor the given Characteristic. Each time a new value is written to the Characteristic
3131
//| add the newly-written bytes to a FIFO buffer.
3232
//|
3333
//| :param Characteristic characteristic: The Characteristic to monitor.
3434
//| It may be a local Characteristic provided by a Peripheral Service, or a remote Characteristic
3535
//| in a remote Service that a Central has connected to.
36-
//| :param int timeout: the timeout in seconds to wait for the first character and between subsequent characters.
36+
//| :param float timeout: the timeout in seconds to wait for the first character and between subsequent characters.
3737
//| :param int buffer_size: Size of ring buffer that stores incoming data coming from client.
3838
//| Must be >= 1."""
3939
//| ...

0 commit comments

Comments
 (0)