def METHOD_NAME(self, new_req_size) -> "PoolAllocation":
    assert new_req_size <= self.full_size
    return PoolAllocation(
        shm_name=self.shm_name,
        handle=self.handle,
        full_size=self.full_size,
        req_size=new_req_size,
    )