Skip to content

Commit

Permalink
Merge pull request tamland#191 from arusahni/master
Browse files Browse the repository at this point in the history
Add typing to the Playlist and Page classes
  • Loading branch information
tehkillerbee authored Oct 23, 2023
2 parents a11775b + c454554 commit af53fc7
Show file tree
Hide file tree
Showing 6 changed files with 282 additions and 164 deletions.
8 changes: 8 additions & 0 deletions tidalapi/artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ def get_radio(self) -> List["Track"]:
),
)

def items(self) -> list:
"""The artist page does not supply any items. This only exists for symmetry with
other model types.
:return: An empty list.
"""
return []

def image(self, dimensions: int = 320) -> str:
"""A url to an artist picture.
Expand Down
2 changes: 1 addition & 1 deletion tidalapi/mix.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Mix:
_retrieved = False
_items: Optional[List[Union["Video", "Track"]]] = None

def __init__(self, session: Session, mix_id: str):
def __init__(self, session: Session, mix_id: Optional[str]):
self.session = session
self.request = session.request
if mix_id is not None:
Expand Down
Loading

0 comments on commit af53fc7

Please sign in to comment.