mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 01:03:53 +00:00
add simple return type
This commit is contained in:
parent
b55c8196bd
commit
2917abeeaa
@ -2215,7 +2215,7 @@ class Spotify:
|
|||||||
"""
|
"""
|
||||||
return self._get("markets")
|
return self._get("markets")
|
||||||
|
|
||||||
def _append_device_id(self, path: str, device_id: Optional[str]):
|
def _append_device_id(self, path: str, device_id: Optional[str]) -> str:
|
||||||
""" Append device ID to API path.
|
""" Append device ID to API path.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
@ -2228,7 +2228,7 @@ class Spotify:
|
|||||||
path += f"?device_id={device_id}"
|
path += f"?device_id={device_id}"
|
||||||
return path
|
return path
|
||||||
|
|
||||||
def _get_id(self, type, id: str):
|
def _get_id(self, type, id: str) -> str:
|
||||||
uri_match = re.search(Spotify._regex_spotify_uri, id)
|
uri_match = re.search(Spotify._regex_spotify_uri, id)
|
||||||
if uri_match is not None:
|
if uri_match is not None:
|
||||||
uri_match_groups = uri_match.groupdict()
|
uri_match_groups = uri_match.groupdict()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user