Skip to content

Commit abecce7

Browse files
committed
Fix code blocks in docstrings
1 parent e61bb1e commit abecce7

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

adafruit_bd3491fs.py

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,11 @@ def active_input(self):
151151
"""The currently selected input. Must be an ``Input``
152152
153153
This example sets A1 and A2 to the active input pair.
154+
154155
.. code-block:: python
155-
bd3491fs.active_input = adafruit_bd3491fs.Input.A
156+
157+
bd3491fs.active_input = adafruit_bd3491fs.Input.A
158+
156159
"""
157160
return self._current_active_input
158161

@@ -163,10 +166,14 @@ def active_input(self, value):
163166

164167
@property
165168
def input_gain(self):
166-
"""The gain applied to all inputs equally"
169+
"""The gain applied to all inputs equally
170+
167171
This example sets the input gain to 10dB.
172+
168173
.. code-block:: python
169-
bd3491fs.input_gain = adafruit_bd3491fs.Level.10_DB""
174+
175+
bd3491fs.input_gain = adafruit_bd3491fs.Level.10_DB
176+
170177
"""
171178
return self._current_input_gain
172179

@@ -181,10 +188,14 @@ def input_gain(self, value):
181188
@property
182189
def channel_1_attenuation(self):
183190
"""The attenuation applied to channel 1 of the currently selected input pair in -dB.
184-
Maximum is -87dB. To mute set to 255
191+
Maximum is -87dB. To mute set to 255.
192+
185193
This example sets the attenuation for input channel 1 to -10dB.
194+
186195
.. code-block:: python
187-
bd3491fs.channel_1_attenuation = 10""
196+
197+
bd3491fs.channel_1_attenuation = 10
198+
188199
"""
189200
return self._current_ch1_attenuation
190201

@@ -198,10 +209,14 @@ def channel_1_attenuation(self, value):
198209
@property
199210
def channel_2_attenuation(self):
200211
"""The attenuation applied to channel 2 of the currently selected input pair in -dB.
201-
Maximum is -87dB. To mute set to 255
212+
Maximum is -87dB. To mute set to 255.
213+
202214
This example sets the attenuation for input channel 2 to -10dB.
215+
203216
.. code-block:: python
204-
bd3491fs.channel_2_attenuation = 10""
217+
218+
bd3491fs.channel_2_attenuation = 10
219+
205220
"""
206221
return self._current_ch2_attenuation
207222

0 commit comments

Comments
 (0)