Fix type hints on play_media function
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 3 Nov 2025 15:11:12 +0000 (16:11 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 3 Nov 2025 15:11:12 +0000 (16:11 +0100)
music_assistant/controllers/player_queues.py

index 73835025e1845a1ccf333ec5447e7a39040a8d11..6bc98534a28aea0f2cc283fb52c9106cb2280da6 100644 (file)
@@ -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