Fix inheritance of MusicBrainzTags into MPD response types
This commit is contained in:
parent
30e0829ff3
commit
fda799e32e
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
# 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"]
|
state: Literal["play", "stop", "pause"]
|
||||||
|
|
||||||
# The total duration and elapsed playback of the current song, measured in seconds. Fractional seconds are allowed.
|
# 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
|
# 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
|
# tagged, since then it can pass more information on to Now Playing, but it
|
||||||
# should work fine with completely untagged music too.
|
# should work fine with completely untagged music too.
|
||||||
class CurrentSongTags(TypedDict, MusicBrainzTags, total=False):
|
class CurrentSongTags(MusicBrainzTags, total=False):
|
||||||
artist: MaybePlural[str]
|
artist: MaybePlural[str]
|
||||||
albumartist: MaybePlural[str]
|
albumartist: MaybePlural[str]
|
||||||
artistsort: MaybePlural[str]
|
artistsort: MaybePlural[str]
|
||||||
|
|
Loading…
Reference in a new issue