spotify/models/user.py
async def recently_played(self) -> List[Dict[str, Union[Track, Context, str]]]:
        """Get tracks from the current users recently played tracks.

        Returns
        -------
        playlist_history : List[Dict[str, Union[Track, Context, str]]]
            A list of playlist history object.
            Each object is a dict with a timestamp, track and context field.
        """
        data = await self.http.recently_played()
        f = lambda data: {'context': Context(data.get('context')), 'track': Track(self.__client, data.get('track'))}
        # List[T] where T: {'track': Track, 'content': Context: 'timestamp': ISO8601}
        return [{'timestamp': track['timestamp'], **f(track)} for track in data['items']]
async def recently_played(self) -> List[Dict[str, Union[Track, Context, str]]]:
        data = await self.http.recently_played()
        f = lambda data: {'context': Context(data.get('context')), 'track': Track(self.__client, data.get('track'))}
        # List[T] where T: {'track': Track, 'content': Context: 'timestamp': ISO8601}
        return [{'timestamp': track['timestamp'], **f(track)} for track in data['items']]
async def recently_played ( self ) -> List [ Dict [ str , Union [ Track , Context , str ] ] ] : data = await self . http . recently_played ( ) f = lambda data : { 'context' : Context ( data . get ( 'context' ) ) , 'track' : Track ( self . __client , data . get ( 'track' ) ) } # List[T] where T: {'track': Track, 'content': Context: 'timestamp': ISO8601} return [ { 'timestamp' : track [ 'timestamp' ] , * * f ( track ) } for track in data [ 'items' ] ]
Get tracks from the current users recently played tracks.

        Returns
        -------
        playlist_history : List[Dict[str, Union[Track, Context, str]]]
            A list of playlist history object.
            Each object is a dict with a timestamp, track and context field.
Get tracks from the current users recently played tracks .