def find_by_user(user: str) -> List['ApiKey']:
        """
        List API keys for a user.
        """
        return [ApiKey.from_db(key) for key in db.get_keys(qb.from_dict({'user': user}))]
def find_by_user ( user : str ) -> List [ 'ApiKey' ] : return [ ApiKey . from_db ( key ) for key in db . get_keys ( qb . from_dict ( { 'user' : user } ) ) ]
List API keys for a user.