33from typing import ClassVar , Literal , Self
44from uuid import UUID
55
6- import msgspec
7-
86from mopidy .models ._base import BaseModel , ModelRegistry
97from mopidy .types import DateOrYear , DurationMs , NonNegativeInt , TracklistId , Uri
108
@@ -139,7 +137,7 @@ class Album(
139137 name : str | None = None
140138
141139 #: A set of album artists. Read-only.
142- artists : frozenset [Artist ] = msgspec . field ( default_factory = frozenset )
140+ artists : frozenset [Artist ] = frozenset ( )
143141
144142 #: The number of tracks in the album. Read-only.
145143 num_tracks : NonNegativeInt | None = None
@@ -169,16 +167,16 @@ class Track(
169167 name : str | None = None
170168
171169 #: A set of track artists. Read-only.
172- artists : frozenset [Artist ] = msgspec . field ( default_factory = frozenset )
170+ artists : frozenset [Artist ] = frozenset ( )
173171
174172 #: The track :class:`Album`. Read-only.
175173 album : Album | None = None
176174
177175 #: A set of track composers. Read-only.
178- composers : frozenset [Artist ] = msgspec . field ( default_factory = frozenset )
176+ composers : frozenset [Artist ] = frozenset ( )
179177
180178 #: A set of track performers. Read-only.
181- performers : frozenset [Artist ] = msgspec . field ( default_factory = frozenset )
179+ performers : frozenset [Artist ] = frozenset ( )
182180
183181 #: The track genre. Read-only.
184182 genre : str | None = None
@@ -257,7 +255,7 @@ class Playlist(
257255 name : str | None = None
258256
259257 #: The playlist's tracks. Read-only.
260- tracks : tuple [Track , ...] = msgspec . field ( default_factory = tuple )
258+ tracks : tuple [Track , ...] = ( )
261259
262260 #: The playlist modification time in milliseconds since Unix epoch.
263261 #: Read-only.
@@ -281,10 +279,10 @@ class SearchResult(
281279 uri : Uri | None = None
282280
283281 #: The tracks matching the search query. Read-only.
284- tracks : tuple [Track , ...] = msgspec . field ( default_factory = tuple )
282+ tracks : tuple [Track , ...] = ( )
285283
286284 #: The artists matching the search query. Read-only.
287- artists : tuple [Artist , ...] = msgspec . field ( default_factory = tuple )
285+ artists : tuple [Artist , ...] = ( )
288286
289287 #: The albums matching the search query. Read-only.
290- albums : tuple [Album , ...] = msgspec . field ( default_factory = tuple )
288+ albums : tuple [Album , ...] = ( )
0 commit comments