Skip to content

Commit 3826bce

Browse files
Corrections
1 parent 263b689 commit 3826bce

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lang/en/typeshed/stdlib/microbit/audio.pyi

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class AudioRecording:
187187
:return: A copy of the ``AudioRecording``.
188188
"""
189189

190-
def track(self, start_ms: int = 0, end_ms: int = -1) -> None:
190+
def track(self, start_ms: int = 0, end_ms: int = -1) -> AudioTrack:
191191
"""Create an ``AudioTrack`` instance from a portion of the data in this ``AudioRecording`` instance.
192192
193193
Example: ``first_second = my_recording.track(0, 1000)``
@@ -196,15 +196,6 @@ class AudioRecording:
196196
: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.
197197
:return: An ``AudioTrack`` backed by the sample data between ``start_ms`` and ``end_ms``.
198198
"""
199-
def __len__(self) -> int: ...
200-
def __setitem__(self, key: int, value: int) -> None: ...
201-
def __getitem__(self, key: int) -> int: ...
202-
def __add__(self, v: AudioRecording) -> AudioRecording: ...
203-
def __iadd__(self, v: AudioRecording) -> AudioRecording: ...
204-
def __sub__(self, v: AudioRecording) -> AudioRecording: ...
205-
def __isub__(self, v: AudioRecording) -> AudioRecording: ...
206-
def __mul__(self, v: float) -> AudioRecording: ...
207-
def __imul__(self, v: float) -> AudioRecording: ...
208199

209200
class AudioTrack:
210201
""" The ``AudioTrack`` object points to the data provided by the input buffer,

0 commit comments

Comments
 (0)