From 362ce528a5614efdfa285b57bd7f70ceae85cbde Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Thu, 2 Nov 2023 12:15:04 +0000 Subject: [PATCH] Typos/misspellings Closes https://github.com/microbit-foundation/python-editor-v3/issues/1125 Closes https://github.com/microbit-foundation/python-editor-v3/issues/1119 Closes https://github.com/microbit-foundation/micropython-microbit-stubs/issues/90 Closes https://github.com/microbit-foundation/micropython-microbit-stubs/issues/89 --- lang/en/typeshed/stdlib/math.pyi | 2 +- lang/en/typeshed/stdlib/microbit/__init__.pyi | 2 +- lang/en/typeshed/stdlib/microbit/audio.pyi | 2 +- lang/en/typeshed/stdlib/microbit/i2c.pyi | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lang/en/typeshed/stdlib/math.pyi b/lang/en/typeshed/stdlib/math.pyi index 978aa21..f82d4de 100644 --- a/lang/en/typeshed/stdlib/math.pyi +++ b/lang/en/typeshed/stdlib/math.pyi @@ -159,7 +159,7 @@ def isinf(x: float) -> bool: ... def isnan(x: float) -> bool: - """Check is a value is not-a-number (NaN). + """Check if a value is not-a-number (NaN). Example: ``math.isnan(float('nan'))`` diff --git a/lang/en/typeshed/stdlib/microbit/__init__.pyi b/lang/en/typeshed/stdlib/microbit/__init__.pyi index 6a59d62..5e03529 100644 --- a/lang/en/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/en/typeshed/stdlib/microbit/__init__.pyi @@ -132,7 +132,7 @@ def running_time() -> int: """ def temperature() -> int: - """Get the temperature of the micro:bit in degrees Celcius.""" + """Get the temperature of the micro:bit in degrees Celsius.""" def set_volume(v: int) -> None: """Sets the volume. diff --git a/lang/en/typeshed/stdlib/microbit/audio.pyi b/lang/en/typeshed/stdlib/microbit/audio.pyi index 8e91152..3b1e327 100644 --- a/lang/en/typeshed/stdlib/microbit/audio.pyi +++ b/lang/en/typeshed/stdlib/microbit/audio.pyi @@ -66,7 +66,7 @@ class SoundEffect: """No effect option used for the ``fx`` parameter.""" FX_TREMOLO: ClassVar[int] - """Tremelo effect option used for the ``fx`` parameter.""" + """Tremolo effect option used for the ``fx`` parameter.""" FX_VIBRATO: ClassVar[int] """Vibrato effect option used for the ``fx`` parameter.""" diff --git a/lang/en/typeshed/stdlib/microbit/i2c.pyi b/lang/en/typeshed/stdlib/microbit/i2c.pyi index 471cffa..df26efa 100644 --- a/lang/en/typeshed/stdlib/microbit/i2c.pyi +++ b/lang/en/typeshed/stdlib/microbit/i2c.pyi @@ -34,7 +34,7 @@ def scan() -> List[int]: ... def read(addr: int, n: int, repeat: bool = False) -> bytes: - """Read bytes from a device.. + """Read bytes from a device. Example: ``i2c.read(0x50, 64)``