pybricks: Drop most ellipsis and pass instances.

See [1]: "I still prefer ... over pass. This clarifies to the readers that they are reading a stub. But if there's a docstring we need neither."

[1] https://github.com/srittau/type-stub-pep/issues/88#issuecomment-758843441

Fixes https://github.com/pybricks/pybricks-api/issues/101#issuecomment-1148780369
This commit is contained in:
Laurens Valk
2022-06-10 10:46:44 +02:00
parent 8ec1b18629
commit 6500440031
11 changed files with 2 additions and 186 deletions
-8
View File
@@ -23,7 +23,6 @@ class Speaker:
method returns immediately and the frequency play continues to
play indefinitely.
"""
pass
def play_notes(self, notes: Iterable[str], tempo: int = 120) -> None:
"""play_notes(notes, tempo=120)
@@ -58,7 +57,6 @@ class Speaker:
tempo (int):
Beats per minute. A quarter note is one beat.
"""
pass
def play_file(self, file_name: Union[SoundFile, str]) -> None:
"""play_file(file_name)
@@ -70,8 +68,6 @@ class Speaker:
Path to the sound file, including the file extension.
"""
pass
def say(self, text: str) -> None:
"""say(text)
@@ -84,8 +80,6 @@ class Speaker:
text (str): What to say.
"""
pass
def set_speech_options(
self,
language: Optional[str] = None,
@@ -115,7 +109,6 @@ class Speaker:
Pitch (0 to 99). Higher numbers make the voice higher pitched
and lower numbers make the voice lower pitched.
"""
pass
def set_volume(self, volume: int, which: str = "_all_") -> None:
"""set_volume(volume, which="_all_")
@@ -131,4 +124,3 @@ class Speaker:
volume for :meth:`.play_file` and :meth:`.say`. ``'_all_'``
sets both at the same time.
"""
pass