Skip to content

Commit 9d81ab4

Browse files
committed
Make zip strict
1 parent a14cb2b commit 9d81ab4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytensor/tensor/random/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ def explicit_expand_dims(
129129
"""Introduce explicit expand_dims in RV parameters that are implicitly broadcasted together and/or by size."""
130130

131131
batch_dims = [
132-
param.type.ndim - ndim_param for param, ndim_param in zip(params, ndim_params)
132+
param.type.ndim - ndim_param
133+
for param, ndim_param in zip(params, ndim_params, strict=True)
133134
]
134135

135136
if size_length is not None:

0 commit comments

Comments
 (0)