Skip to content

Commit 6f986ae

Browse files
Use reification input type to construct the output
1 parent d9c3f6e commit 6f986ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etuples/dispatch.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ def _reify_ExpressionTuple(u, s):
5151
if getattr(u, "_parent", None) and all(res_same):
5252
# If we simply swapped-out logic variables, then we don't want to
5353
# lose the parent etuple information.
54-
res = etuple(*res)
54+
res = type(u)(res)
5555
res._parent = u._parent
5656
yield res
5757
return
5858

59-
yield etuple(*res)
59+
yield type(u)(res)
6060

6161
_reify.add((ExpressionTuple, Mapping), _reify_ExpressionTuple)
6262

0 commit comments

Comments
 (0)