diff --git a/voicelink/spotify/client.py b/voicelink/spotify/client.py index 66e76c2..58c5205 100644 --- a/voicelink/spotify/client.py +++ b/voicelink/spotify/client.py @@ -103,7 +103,7 @@ class Client: return [ Track(track) for track in data['tracks'] ] - async def search(self, *, query: str) -> Union(Track, Album, Playlist): + async def search(self, *, query: str) -> Union[Track, Album, Playlist]: if not self._bearer_token or time.time() >= self._expiry: await self._fetch_bearer_token()