add return type

This commit is contained in:
bvandercar-vt 2025-12-03 11:45:37 -07:00
parent 942ddf7a3c
commit b55c8196bd

View File

@ -2252,13 +2252,13 @@ class Spotify:
# TODO change to a ValueError in v3 # TODO change to a ValueError in v3
raise SpotifyException(400, -1, "Unsupported URL / URI.") raise SpotifyException(400, -1, "Unsupported URL / URI.")
def _get_uri(self, type, id: str): def _get_uri(self, type, id: str) -> str:
if self._is_uri(id): if self._is_uri(id):
return id return id
else: else:
return "spotify:" + type + ":" + self._get_id(type, id) return "spotify:" + type + ":" + self._get_id(type, id)
def _is_uri(self, uri: str): def _is_uri(self, uri: str) -> bool:
return re.search(Spotify._regex_spotify_uri, uri) is not None return re.search(Spotify._regex_spotify_uri, uri) is not None
def _search_multiple_markets( def _search_multiple_markets(