Skip to content

Commit

Permalink
Fix circular import in Song and Album (#280)
Browse files Browse the repository at this point in the history
* Fix circular import in Song and Album

* Increment version to 3.1.2

---------

Co-authored-by: John William Ruth Miller <[email protected]>
Co-authored-by: John W. Miller <[email protected]>
  • Loading branch information
3 people authored Dec 13, 2024
1 parent 67f900b commit 795a81b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lyricsgenius/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
__url__ = 'https://github.com/johnwmillr/LyricsGenius'
__description__ = 'A Python wrapper around the Genius API'
__license__ = 'MIT'
__version__ = '3.1.1'
__version__ = '3.1.2'
2 changes: 1 addition & 1 deletion lyricsgenius/types/album.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 795a81b

Please sign in to comment.