(last_used)
return {
        'name': most_recently_used[0],
        'date': last_used[most_recently_used[0]]
    } if most_recently_used else None
Returns the name and date of the most recently used toggle
Returns the name and date of the most recently used toggle
Returns the name and date of the most recently used toggle
def _get_most_recently_used(last_used):
    """Returns the name and date of the most recently used toggle"""
    last_used = {k: v for k, v in last_used.items() if v != NOT_FOUND}
    most_recently_used = sorted(last_used, key=last_used.get, reverse=True)
    return {
        'name': most_recently_used[0],
        'date': last_used[most_recently_used[0]]
    } if most_recently_used else None
def _get_most_recently_used ( last_used ) : last_used = { k : v for k , v in last_used . items ( ) if v != NOT_FOUND } most_recently_used = sorted ( last_used , key = last_used . get , reverse = True ) return { 'name' : most_recently_used [ 0 ] , 'date' : last_used [ most_recently_used [ 0 ] ] } if most_recently_used else None