From 167cf3ad18ca5575bf57f54f0348caf00ac6fc00 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Mon, 27 Jan 2020 13:12:57 +0100 Subject: [PATCH] doc/builtins/Speaker: use '' for string settings Also simplify by not listing all the options twice, and follow style for default argument. --- pybricks/builtins.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pybricks/builtins.py b/pybricks/builtins.py index a69c07c..8609e35 100644 --- a/pybricks/builtins.py +++ b/pybricks/builtins.py @@ -421,11 +421,10 @@ class Speaker(): volume (:ref:`percentage`): Volume of the speaker. which (str): - The specific volume to set. Can be ``Beep``, ``PCM`` or - ``_all_``. ``Beep`` controls the volume for :meth:`beep` and - :meth:`play_notes`. ``PCM`` controls the volume for - :meth:`play_file` and :meth:`say`. ``_all_`` sets both at the - same time. + Which volume to set. ``'Beep'`` sets the volume for + :meth:`beep` and :meth:`play_notes`. ``'PCM'`` sets the volume + for :meth:`play_file` and :meth:`say`. ``'_all_'`` sets both + at the same time (*Default*: ``'_all_'``). """ pass