Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __post_init__(self):
self.items = ModelList(Category(**c) for c in self.items)
def __post_init__(self):
self.album_type = AlbumType[self.album_type.lower()]
self.artists = ModelList(SimpleArtist(**a) for a in self.artists)
self.images = ModelList(Image(**i) for i in self.images)
self.release_date_precision = ReleaseDatePrecision[
self.release_date_precision
]
def __post_init__(self):
super().__post_init__()
if self.available_markets is not None:
self.available_markets = ModelList(self.available_markets)
self.copyrights = ModelList(Copyright(**c) for c in self.copyrights)
self.genres = ModelList(self.genres)
self.tracks = SimpleTrackPaging(**self.tracks)
def __post_init__(self):
self.bars = ModelList(TimeInterval(**i) for i in self.bars)
self.beats = ModelList(TimeInterval(**i) for i in self.beats)
self.sections = ModelList(Section(**s) for s in self.sections)
self.segments = ModelList(Segment(**s) for s in self.segments)
self.tatums = ModelList(TimeInterval(**i) for i in self.tatums)
def __post_init__(self):
super().__post_init__()
if self.album_group is not None:
self.album_group = AlbumGroup[self.album_group]
if self.available_markets is not None:
self.available_markets = ModelList(self.available_markets)
def __post_init__(self):
self.seeds = ModelList(RecommendationSeed(**s) for s in self.seeds)
self.tracks = ModelList(FullTrack(**t) for t in self.tracks)
def __post_init__(self):
self.items = ModelList(SavedTrack(**t) for t in self.items)
def __post_init__(self):
self.available_markets = ModelList(self.available_markets)
self.copyrights = ModelList(Copyright(**c) for c in self.copyrights)
self.images = ModelList(Image(**i) for i in self.images)
self.languages = ModelList(self.languages)
def __post_init__(self):
self.icons = ModelList(Image(**i) for i in self.icons)
def __post_init__(self):
self.followers = Followers(**self.followers)
self.genres = ModelList(self.genres)
self.images = ModelList(Image(**i) for i in self.images)