Skip to content

Commit

Permalink
fix : autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Aug 12, 2024
1 parent fe1ceb9 commit ff58945
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nava/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def path_checker(sound_path, *args, **kwargs):
return func(sound_path, *args, **kwargs)
return path_checker


def __play_auto(sound_path, async_mode=False, loop=False):
"""
Play sound in automatic mode.
Expand All @@ -272,6 +273,7 @@ def __play_auto(sound_path, async_mode=False, loop=False):
else:
return __play_alsa(sound_path, async_mode, loop)


@path_check
def play(sound_path, async_mode=False, loop=False, engine=Engine.AUTO):
"""
Expand Down
2 changes: 2 additions & 0 deletions nava/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"""


class Engine(Enum):
"""
Nava engine class.
Expand All @@ -22,6 +23,7 @@ class Engine(Enum):
ALSA = "alsa"
AFPLAY = "afplay"


SOUND_FILE_PLAY_ERROR = "Sound can not play due to some issues."
SOUND_FILE_EXIST_ERROR = "Given sound file doesn't exist."
SOUND_FILE_PATH_TYPE_ERROR = "Sound file's path should be a string."
Expand Down
1 change: 1 addition & 0 deletions nava/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import threading
from .params import Engine


class NavaThread(threading.Thread):
"""Nava custom thread."""

Expand Down

0 comments on commit ff58945

Please sign in to comment.