Skip to content

Commit c1ecfb9

Browse files
committed
numba
1 parent d59f218 commit c1ecfb9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pytensor/link/numba/dispatch/extra_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def ravelmultiindex(*inp):
186186

187187
new_arr = arr.T.astype(np.float64).copy()
188188
for i, b in enumerate(new_arr):
189-
for j, (d, v) in enumerate(zip(shape, b, strict=True)):
189+
for j, (d, v) in enumerate(zip(shape, b)): # noqa: B905
190190
if v < 0 or v >= d:
191191
mode_fn(new_arr, i, j, v, d)
192192

pytensor/link/numba/dispatch/scalar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def {scalar_op_fn_name}({input_names}):
118118
[
119119
f"direct_cast({i_name}, {i_tmp_dtype_name})"
120120
for i_name, i_tmp_dtype_name in zip(
121-
input_names, input_tmp_dtype_names.keys(), strict=True
121+
input_names, input_tmp_dtype_names.keys(), strict=False
122122
)
123123
]
124124
)

pytensor/link/numba/dispatch/slinalg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def block_diag(*arrs):
421421
out = np.zeros((out_shape[0], out_shape[1]), dtype=dtype)
422422

423423
r, c = 0, 0
424-
for arr, shape in zip(arrs, shapes, strict=True):
424+
for arr, shape in zip(arrs, shapes): # noqa: B905
425425
rr, cc = shape
426426
out[r : r + rr, c : c + cc] = arr
427427
r += rr

0 commit comments

Comments
 (0)