From 292bdfd2fade39fb9a0248a8d2e60500ab7bfcb6 Mon Sep 17 00:00:00 2001 From: Hellow2 Date: Mon, 13 Mar 2023 14:33:17 +0100 Subject: [PATCH] attribute --- src/music_kraken/objects/lyrics.py | 4 ++-- src/music_kraken/objects/source.py | 4 ++-- src/music_kraken/objects/target.py | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/music_kraken/objects/lyrics.py b/src/music_kraken/objects/lyrics.py index 746fc36..dc668ed 100644 --- a/src/music_kraken/objects/lyrics.py +++ b/src/music_kraken/objects/lyrics.py @@ -9,8 +9,8 @@ from .formatted_text import FormattedText class Lyrics(DatabaseObject): - COLLECTION_ATTRIBUTES = ["source_collection"] - SIMPLE_ATTRIBUTES = ["text", "language"] + COLLECTION_ATTRIBUTES = ("source_collection",) + SIMPLE_ATTRIBUTES = ("text", "language") def __init__( self, diff --git a/src/music_kraken/objects/source.py b/src/music_kraken/objects/source.py index eb50346..8fe03fc 100644 --- a/src/music_kraken/objects/source.py +++ b/src/music_kraken/objects/source.py @@ -55,8 +55,8 @@ class Source(DatabaseObject): Source(src="youtube", url="https://youtu.be/dfnsdajlhkjhsd") ``` """ - COLLECTION_ATTRIBUTES = [] - SIMPLE_ATTRIBUTES = ["type_enum", "page_enum", "url"] + COLLECTION_ATTRIBUTES = tuple() + SIMPLE_ATTRIBUTES = ("type_enum", "page_enum", "url") def __init__(self, page_enum: SourcePages, url: str, id_: str = None, type_enum=None) -> None: DatabaseObject.__init__(self, id_=id_) diff --git a/src/music_kraken/objects/target.py b/src/music_kraken/objects/target.py index 7d7f7eb..895e367 100644 --- a/src/music_kraken/objects/target.py +++ b/src/music_kraken/objects/target.py @@ -15,6 +15,7 @@ class Target(DatabaseObject): """ SIMPLE_ATTRIBUTES = ("_file", "_path") + COLLECTION_ATTRIBUTES = tuple() def __init__( self,