diff --git a/src/api/python/z3/z3.py b/src/api/python/z3/z3.py index fdeb424bf..c8985cfcd 100644 --- a/src/api/python/z3/z3.py +++ b/src/api/python/z3/z3.py @@ -6266,7 +6266,7 @@ class ModelRef(Z3PPObject): if z3_debug(): _z3_assert(isinstance(target, Context), "argument must be a Z3 context") model = Z3_model_translate(self.ctx.ref(), self.model, target.ref()) - return Model(model, target) + return ModelRef(model, target) def __copy__(self): return self.translate(self.ctx)