Skip to content

Commit

Permalink
add types
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiagoSotoC committed Oct 23, 2024
1 parent 8d738b6 commit 25e3e77
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions music_assistant/server/providers/snapcast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@
from music_assistant.common.models.errors import SetupFailedError
from music_assistant.common.models.media_items import AudioFormat
from music_assistant.common.models.player import DeviceInfo, Player, PlayerMedia
from music_assistant.server.helpers.audio import (
FFMpeg,
get_ffmpeg_stream,
get_player_filter_params,
)
from music_assistant.server.helpers.audio import FFMpeg, get_ffmpeg_stream, get_player_filter_params
from music_assistant.server.helpers.process import AsyncProcess, check_output
from music_assistant.server.models.player_provider import PlayerProvider

Expand Down Expand Up @@ -568,7 +564,7 @@ async def _streamer() -> None:
# start streaming the queue (pcm) audio in a background task
self._stream_tasks[player_id] = asyncio.create_task(_streamer())

async def _delete_current_snapstream(self, stream, media):
async def _delete_current_snapstream(self, stream: Snapstream, media: PlayerMedia) -> None:
with suppress(TypeError, KeyError, AttributeError):
if media.duration < 5:
await asyncio.sleep(5)
Expand Down

0 comments on commit 25e3e77

Please sign in to comment.