diff --git a/etuples/dispatch.py b/etuples/dispatch.py index da94d62..5ee5d00 100644 --- a/etuples/dispatch.py +++ b/etuples/dispatch.py @@ -51,12 +51,12 @@ def _reify_ExpressionTuple(u, s): if getattr(u, "_parent", None) and all(res_same): # If we simply swapped-out logic variables, then we don't want to # lose the parent etuple information. - res = etuple(*res) + res = type(u)(res) res._parent = u._parent yield res return - yield etuple(*res) + yield type(u)(res) _reify.add((ExpressionTuple, Mapping), _reify_ExpressionTuple)