Verified Commit b30e5795 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add explicit Title and Artist types

parent a503e67c
Loading
Loading
Loading
Loading
+5 −2
Changes for karaokatalog/Song.py: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -6,6 +6,9 @@ import filecmp

from dataclasses import dataclass

type Title = str
type Artist = str


@dataclass(frozen=True)
class Song:
@@ -15,8 +18,8 @@ class Song:
    See https://usdx.eu/format/ for the specification.
    """

    title: str
    artist: str
    title: Title
    artist: Artist
    audio: Path | None
    video: Path | None
    cover: Path | None