From b55c8196bd98659953c826c8b7d3d8fb16b323b7 Mon Sep 17 00:00:00 2001 From: bvandercar-vt Date: Wed, 3 Dec 2025 11:45:37 -0700 Subject: [PATCH] add return type --- spotipy/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spotipy/client.py b/spotipy/client.py index a0c81b8..d6f20da 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -2252,13 +2252,13 @@ class Spotify: # TODO change to a ValueError in v3 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): return id else: 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 def _search_multiple_markets(