Add explicit Title and Artist types

This commit is contained in:
Jakob Moser 2025-05-18 21:36:47 +02:00
parent a503e67c93
commit b30e579586
Signed by: jakob
GPG Key ID: 3EF2BA2851B3F53C

View File

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