def update_user(user_id: int, **kwargs): user = User.get(user_id) user.update(**kwargs) return user
def remove_user(user_id: int) -> (str, int): user = User.get(user_id) user.delete() return "", 204
def get_user(user_id: int): user = User.get(user_id) return user