Skip to content

Commit bf1e5d9

Browse files
committed
Make non-strict zip strict in scalar/loop.py
1 parent baf0881 commit bf1e5d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/scalar/loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def _validate_updates(
9393
)
9494
else:
9595
update = outputs
96-
for i, u in zip(init, update, strict=False):
96+
for i, u in zip(init[: len(update)], update, strict=True):
9797
if i.type != u.type:
9898
raise TypeError(
9999
"Init and update types must be the same: "

0 commit comments

Comments
 (0)