Add explicit Title and Artist types
This commit is contained in:
parent
a503e67c93
commit
b30e579586
@ -6,6 +6,9 @@ import filecmp
|
|||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
|
type Title = str
|
||||||
|
type Artist = str
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
class Song:
|
class Song:
|
||||||
@ -15,8 +18,8 @@ class Song:
|
|||||||
See https://usdx.eu/format/ for the specification.
|
See https://usdx.eu/format/ for the specification.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
title: str
|
title: Title
|
||||||
artist: str
|
artist: Artist
|
||||||
audio: Path | None
|
audio: Path | None
|
||||||
video: Path | None
|
video: Path | None
|
||||||
cover: Path | None
|
cover: Path | None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user