From 2917abeeaa11c0e67e1647329fd3d7caf13a69e5 Mon Sep 17 00:00:00 2001 From: bvandercar-vt Date: Wed, 3 Dec 2025 11:46:34 -0700 Subject: [PATCH] add simple return type --- spotipy/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spotipy/client.py b/spotipy/client.py index d6f20da..e33c54f 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -2215,7 +2215,7 @@ class Spotify: """ 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. Parameters: @@ -2228,7 +2228,7 @@ class Spotify: path += f"?device_id={device_id}" 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) if uri_match is not None: uri_match_groups = uri_match.groupdict()