From fda799e32e64a1a7507ec6225a7b9c8b4eaecffb Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 23 Jul 2024 10:52:43 +1000 Subject: [PATCH] Fix inheritance of MusicBrainzTags into MPD response types --- src/mpd_now_playable/mpd/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mpd_now_playable/mpd/types.py b/src/mpd_now_playable/mpd/types.py index 800fc7b..4183e5d 100644 --- a/src/mpd_now_playable/mpd/types.py +++ b/src/mpd_now_playable/mpd/types.py @@ -16,7 +16,7 @@ OneshotFlag = Literal[BooleanFlag, "oneshot"] # This is not the complete status response from MPD, just the parts of it mpd-now-playable uses. -class StatusResponse(TypedDict, MusicBrainzTags): +class StatusResponse(TypedDict): state: Literal["play", "stop", "pause"] # The total duration and elapsed playback of the current song, measured in seconds. Fractional seconds are allowed. @@ -49,7 +49,7 @@ class StatusResponse(TypedDict, MusicBrainzTags): # optional. mpd-now-playable will work better if your music is properly # tagged, since then it can pass more information on to Now Playing, but it # should work fine with completely untagged music too. -class CurrentSongTags(TypedDict, MusicBrainzTags, total=False): +class CurrentSongTags(MusicBrainzTags, total=False): artist: MaybePlural[str] albumartist: MaybePlural[str] artistsort: MaybePlural[str]