Skip to content

Commit

Permalink
Fix circular import in Song and Album
Browse files Browse the repository at this point in the history
  • Loading branch information
allerter committed Dec 8, 2024
1 parent d4015f3 commit f68bab9
Showing 1 changed file with 1 addition and 1 deletion.
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 f68bab9

Please sign in to comment.