    def cleanup_user(self, user):
        # type: (User) -> None
        '''
        Cleanup a user from the active users list once they have no remaining
        tasks.
        '''
        logging.debug('Removing {} from active users'.format(user['name']))
        self.active_users.pop(user['id'], None)
Cleanup a user from the active users list once they have no remaining
tasks.
securitybot/bot.py