Skip to content

Commit

Permalink
Use reification input type to construct the output
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed May 17, 2023
1 parent d9c3f6e commit 6f986ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etuples/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6f986ae

Please sign in to comment.