Skip to content

Commit

Permalink
Change :returns: -> :return:
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-grace committed Mar 20, 2024
1 parent 9221520 commit 12a25f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lang/en/typeshed/stdlib/microbit/audio.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class AudioFrame:
"""Get the sampling rate associated with the data in the
``AudioFrame`` instance (V2 only).
:returns: The configured sampling rate for this ``AudioFrame`` instance.
:return: The configured sampling rate for this ``AudioFrame`` instance.
"""

def copyfrom(self, other: AudioFrame) -> None:
Expand Down
4 changes: 2 additions & 2 deletions lang/en/typeshed/stdlib/microbit/microphone.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def record(duration: int = 3000, rate: int = 7812) -> AudioFrame:
:param duration: How long to record in milliseconds.
:param rate: Number of samples to capture per second.
:returns: An ``AudioFrame`` with the sound samples.
:return: An ``AudioFrame`` with the sound samples.
"""
...

Expand All @@ -103,7 +103,7 @@ def record_into(buffer: AudioFrame, rate: int = 7812, wait: bool = True) -> None
def is_recording() -> bool:
"""Checks whether the microphone is currently recording.
:returns: ``True`` if the microphone is currently recording sound, or
:return: ``True`` if the microphone is currently recording sound, or
``False`` otherwise.
"""
...
Expand Down

0 comments on commit 12a25f1

Please sign in to comment.