Skip to content

Commit 34775b5

Browse files
committed
Fix newly-flagged ruff issues
1 parent e38414b commit 34775b5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pycuda/elementwise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def __call__(self, *args, **kwargs):
246246
range_ is not None or slice_ is not None
247247
)
248248

249-
for arg, arg_descr in zip(args, arguments):
249+
for arg, arg_descr in zip(args, arguments, strict=False):
250250
if isinstance(arg_descr, VectorArg):
251251
if not arg.flags.forc:
252252
raise RuntimeError(

pycuda/gpuarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ def make_func_for_chunk_size(chunk_size):
17611761
if start_i + chunk_size > vec_count:
17621762
func, tex_src = make_func_for_chunk_size(vec_count - start_i)
17631763

1764-
for src_tr, a in zip(tex_src, arrays[chunk_slice]):
1764+
for src_tr, a in zip(tex_src, arrays[chunk_slice], strict=False):
17651765
a.bind_to_texref_ext(src_tr, allow_double_hack=True)
17661766

17671767
func.prepared_async_call(

pycuda/reduction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def __call__(self, *args, **kwargs):
287287
invocation_args = []
288288
vectors = []
289289

290-
for arg, arg_tp in zip(args, arg_types):
290+
for arg, arg_tp in zip(args, arg_types, strict=False):
291291
if arg_tp == "P":
292292
if not arg.flags.forc:
293293
raise RuntimeError(

0 commit comments

Comments
 (0)