Skip to content

Commit ba20831

Browse files
committed
Formatting
Formatting fixes
1 parent ec3b40d commit ba20831

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

tidalapi/user.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def artists_paginated(
549549
order: Optional[ArtistOrder] = None,
550550
order_direction: Optional[OrderDirection] = None,
551551
) -> List["Artist"]:
552-
"""Get the users favorite artists, using pagination
552+
"""Get the users favorite artists, using pagination.
553553
554554
:param order: Optional; A :class:`ArtistOrder` describing the ordering type when returning the user favorite artists. eg.: "NAME, "DATE"
555555
:param order_direction: Optional; A :class:`OrderDirection` describing the ordering direction when sorting by `order`. eg.: "ASC", "DESC"
@@ -592,7 +592,7 @@ def albums_paginated(
592592
order: Optional[AlbumOrder] = None,
593593
order_direction: Optional[OrderDirection] = None,
594594
) -> List["Album"]:
595-
"""Get the users favorite albums, using pagination
595+
"""Get the users favorite albums, using pagination.
596596
597597
:param order: Optional; A :class:`AlbumOrder` describing the ordering type when returning the user favorite albums. eg.: "NAME, "DATE"
598598
:param order_direction: Optional; A :class:`OrderDirection` describing the ordering direction when sorting by `order`. eg.: "ASC", "DESC"
@@ -633,7 +633,8 @@ def playlists_paginated(
633633
order: Optional[PlaylistOrder] = None,
634634
order_direction: Optional[OrderDirection] = None,
635635
) -> List["Playlist"]:
636-
"""Get the users favorite playlists relative to the root folder, using pagination
636+
"""Get the users favorite playlists relative to the root folder, using
637+
pagination.
637638
638639
:param order: Optional; A :class:`PlaylistOrder` describing the ordering type when returning the user favorite playlists. eg.: "NAME, "DATE"
639640
:param order_direction: Optional; A :class:`OrderDirection` describing the ordering direction when sorting by `order`. eg.: "ASC", "DESC"
@@ -728,7 +729,8 @@ def tracks_paginated(
728729
order: Optional[ItemOrder] = None,
729730
order_direction: Optional[OrderDirection] = None,
730731
) -> List["Playlist"]:
731-
"""Get the users favorite playlists relative to the root folder, using pagination
732+
"""Get the users favorite playlists relative to the root folder, using
733+
pagination.
732734
733735
:param order: Optional; A :class:`ItemOrder` describing the ordering type when returning the user favorite tracks. eg.: "NAME, "DATE"
734736
:param order_direction: Optional; A :class:`OrderDirection` describing the ordering direction when sorting by `order`. eg.: "ASC", "DESC"

tidalapi/workers.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ def get_items(
1515
chunk_size: int = 50,
1616
processes: int = 5,
1717
):
18-
"""
19-
This function performs pagination on a function that supports
20-
`limit`/`offset` parameters and it runs API requests in parallel to speed
21-
things up.
22-
"""
18+
"""This function performs pagination on a function that supports `limit`/`offset`
19+
parameters and it runs API requests in parallel to speed things up."""
2320
items = []
2421
offsets = [-chunk_size]
2522
remaining = chunk_size * processes

0 commit comments

Comments
 (0)