Skip to content

Commit e49d3ad

Browse files
committed
Reformatted per pre-commit
1 parent 50fa604 commit e49d3ad

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

adafruit_pyoa.py

+16-4
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,13 @@ def display_card(self, card_num: int) -> int:
344344
"Could not find card with matching 'card_id': ", destination_card_id
345345
)
346346

347-
def play_sound(self, filename: Optional[str], *, wait_to_finish: bool = True, loop: bool = False) -> None:
347+
def play_sound(
348+
self,
349+
filename: Optional[str],
350+
*,
351+
wait_to_finish: bool = True,
352+
loop: bool = False
353+
) -> None:
348354
"""Play a sound
349355
350356
:param filename: The filename of the sound to play. Use `None` to stop
@@ -380,7 +386,12 @@ def play_sound(self, filename: Optional[str], *, wait_to_finish: bool = True, lo
380386
self._wavfile = None
381387
self._speaker_enable.value = False
382388

383-
def set_text(self, text: Optional[str], color: Optional[str], background_color: Optional[int] = None) -> None:
389+
def set_text(
390+
self,
391+
text: Optional[str],
392+
color: Optional[str],
393+
background_color: Optional[int] = None,
394+
) -> None:
384395
"""Display the test for a card.
385396
386397
:param text: the text to display
@@ -389,7 +400,6 @@ def set_text(self, text: Optional[str], color: Optional[str], background_color:
389400
:type color: str or None
390401
:param background_color: the background color of the text
391402
:type background_color: int or None
392-
393403
"""
394404
if self._text_group:
395405
self._text_group.pop()
@@ -417,7 +427,9 @@ def set_text(self, text: Optional[str], color: Optional[str], background_color:
417427
self._text.background_color = background_color
418428
self._text_group.append(self._text)
419429

420-
def set_background(self, filename: Optional[str], *, with_fade: bool=True) -> None:
430+
def set_background(
431+
self, filename: Optional[str], *, with_fade: bool = True
432+
) -> None:
421433
"""The background image to a bitmap file.
422434
423435
:param filename: The filename of the chosen background

0 commit comments

Comments
 (0)