From f68bab946a9de94a4ffbe6d817099a8e9a051a6a Mon Sep 17 00:00:00 2001 From: Hazhir Date: Sun, 8 Dec 2024 21:53:48 +0100 Subject: [PATCH 1/2] Fix circular import in Song and Album --- lyricsgenius/types/album.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lyricsgenius/types/album.py b/lyricsgenius/types/album.py index b6e8303..805f1d0 100644 --- a/lyricsgenius/types/album.py +++ b/lyricsgenius/types/album.py @@ -1,7 +1,6 @@ from ..utils import convert_to_datetime from .base import BaseEntity from .artist import Artist -from .song import Song class Album(BaseEntity): @@ -71,6 +70,7 @@ class Track(BaseEntity): """docstring for Track""" def __init__(self, client, json_dict, lyrics): + from .song import Song body = json_dict super().__init__(body['song']['id']) self._body = body From dfd17ab9e010b6602729644997b424dc794a5f29 Mon Sep 17 00:00:00 2001 From: John William Ruth Miller Date: Fri, 13 Dec 2024 08:26:08 -0800 Subject: [PATCH 2/2] Increment version to 3.1.2 --- lyricsgenius/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lyricsgenius/__init__.py b/lyricsgenius/__init__.py index 935d91e..eac9a87 100644 --- a/lyricsgenius/__init__.py +++ b/lyricsgenius/__init__.py @@ -14,4 +14,4 @@ __url__ = 'https://github.com/johnwmillr/LyricsGenius' __description__ = 'A Python wrapper around the Genius API' __license__ = 'MIT' -__version__ = '3.0.1' +__version__ = '3.1.2'