Fix inheritance of MusicBrainzTags into MPD response types

This commit is contained in:
Danielle McLean 2024-07-23 10:52:43 +10:00
parent 30e0829ff3
commit fda799e32e
Signed by: 00dani
GPG key ID: 6854781A0488421C

View file

@ -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]