From 3826bceb0e8f287455bf60f0bf195bf7be5353ef Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Wed, 21 Aug 2024 09:56:45 +0100 Subject: [PATCH] Corrections --- lang/en/typeshed/stdlib/microbit/audio.pyi | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lang/en/typeshed/stdlib/microbit/audio.pyi b/lang/en/typeshed/stdlib/microbit/audio.pyi index 5a625cf..6badf18 100644 --- a/lang/en/typeshed/stdlib/microbit/audio.pyi +++ b/lang/en/typeshed/stdlib/microbit/audio.pyi @@ -187,7 +187,7 @@ class AudioRecording: :return: A copy of the ``AudioRecording``. """ - def track(self, start_ms: int = 0, end_ms: int = -1) -> None: + def track(self, start_ms: int = 0, end_ms: int = -1) -> AudioTrack: """Create an ``AudioTrack`` instance from a portion of the data in this ``AudioRecording`` instance. Example: ``first_second = my_recording.track(0, 1000)`` @@ -196,15 +196,6 @@ class AudioRecording: :param end_ms: (default=-1) The end of the track in milliseconds. If the default value of ``-1`` is provided it will end the track at the end of the AudioRecording. :return: An ``AudioTrack`` backed by the sample data between ``start_ms`` and ``end_ms``. """ - def __len__(self) -> int: ... - def __setitem__(self, key: int, value: int) -> None: ... - def __getitem__(self, key: int) -> int: ... - def __add__(self, v: AudioRecording) -> AudioRecording: ... - def __iadd__(self, v: AudioRecording) -> AudioRecording: ... - def __sub__(self, v: AudioRecording) -> AudioRecording: ... - def __isub__(self, v: AudioRecording) -> AudioRecording: ... - def __mul__(self, v: float) -> AudioRecording: ... - def __imul__(self, v: float) -> AudioRecording: ... class AudioTrack: """ The ``AudioTrack`` object points to the data provided by the input buffer,