From 4dc625baceaad22e68d7d54b7c896931706dd7e5 Mon Sep 17 00:00:00 2001 From: Bert Date: Sat, 27 Jun 2026 17:46:20 +0200 Subject: [PATCH] pybricks.messaging: Fix a few minor typos in docstrings. A few docstrings contained spelling and grammar mistakes. These changes improve readability and do not affect functionality. --- src/pybricks/messaging.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pybricks/messaging.py b/src/pybricks/messaging.py index fac52600..dfbfda6a 100644 --- a/src/pybricks/messaging.py +++ b/src/pybricks/messaging.py @@ -182,7 +182,7 @@ def __init__( You can read data that is delivered by other EV3 bricks, or send data to other bricks that have the same mailbox. - By default, the mailbox reads and send only bytes. To send other + By default, the mailbox reads and sends only bytes. To send other data, you can provide an ``encode`` function that encodes your Python object into bytes, and a ``decode`` function to convert bytes back to a Python object. @@ -217,7 +217,7 @@ def send(self, value: T, brick: Optional[str] = None) -> None: value: The value that will be delivered to the mailbox. brick (str): - The name or Bluetooth address of the brick or ``None`` to + The name or Bluetooth address of the brick or ``None`` to broadcast to all connected devices. Raises: @@ -228,7 +228,7 @@ def send(self, value: T, brick: Optional[str] = None) -> None: def wait(self) -> None: """wait() - Waits for the mailbox to be updated by remote device.""" + Waits for the mailbox to be updated by a remote device.""" def wait_new(self) -> T: """wait_new() @@ -380,7 +380,7 @@ class AppData: Bluetooth. This is used by the smart sensor features like the vision processors. - Each processor has on emode and produces a fixed amount of data. These are + Each processor has one mode and produces a fixed amount of data. These are continuously sent to the hub as they change. The user code can read these buffered values at any time without blocking. All values are initially zero.