From: Marcel van der Veldt Date: Mon, 3 Nov 2025 15:11:12 +0000 (+0100) Subject: Fix type hints on play_media function X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=b5aecf1ece765a9452693066af14620ef89a6992;p=music-assistant-server.git Fix type hints on play_media function --- diff --git a/music_assistant/controllers/player_queues.py b/music_assistant/controllers/player_queues.py index 73835025..6bc98534 100644 --- a/music_assistant/controllers/player_queues.py +++ b/music_assistant/controllers/player_queues.py @@ -364,17 +364,18 @@ class PlayerQueuesController(CoreController): async def play_media( self, queue_id: str, - media: MediaItemType | ItemMapping | list[MediaItemType | ItemMapping] | str | list[str], + media: MediaItemType | ItemMapping | str | list[MediaItemType | ItemMapping | str], option: QueueOption | None = None, radio_mode: bool = False, start_item: PlayableMediaItemType | str | None = None, ) -> None: """Play media item(s) on the given queue. - - media: Media that should be played (MediaItem(s) or uri's). - - queue_opt: Which enqueue mode to use. - - radio_mode: Enable radio mode for the given item(s). - - start_item: Optional item to start the playlist or album from. + :param queue_id: The queue_id of the queue to play media on. + :param media: Media that should be played (MediaItem(s) and/or uri's). + :param option: Which enqueue mode to use. + :param radio_mode: Enable radio mode for the given item(s). + :param start_item: Optional item to start the playlist or album from. """ # ruff: noqa: PLR0915 # we use a contextvar to bypass the throttler for this asyncio task/context