From b30e57958626ad945f554852c8f2100dae37db9d Mon Sep 17 00:00:00 2001 From: Jakob Moser Date: Sun, 18 May 2025 21:36:47 +0200 Subject: [PATCH] Add explicit Title and Artist types --- karaokatalog/Song.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/karaokatalog/Song.py b/karaokatalog/Song.py index 31caed2..db207d4 100644 --- a/karaokatalog/Song.py +++ b/karaokatalog/Song.py @@ -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