Skip to content

Commit 5653337

Browse files
Copilotmdboom
andcommitted
Fix remaining Tuple usage in utils.pyx.in isinstance check
Co-authored-by: mdboom <38294+mdboom@users.noreply.github.com>
1 parent 4329941 commit 5653337

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cuda_bindings/cuda/bindings/_lib/utils.pyx.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ cdef class HelperKernelParams:
5757
raise RuntimeError("Argument 'kernelParams' failed to retrieve buffer through Buffer Protocol")
5858
self._pyobj_acquired = True
5959
self._ckernelParams = <void**><void_ptr>self._pybuffer.buf
60-
elif isinstance(kernelParams, (Tuple)) and len(kernelParams) == 2 and isinstance(kernelParams[0], (Tuple)) and isinstance(kernelParams[1], (Tuple)):
60+
elif isinstance(kernelParams, (tuple)) and len(kernelParams) == 2 and isinstance(kernelParams[0], (tuple)) and isinstance(kernelParams[1], (tuple)):
6161
# Hard run, construct and fill out contigues memory using provided kernel values and types based
6262
if len(kernelParams[0]) != len(kernelParams[1]):
6363
raise TypeError("Argument 'kernelParams' has tuples with different length")

0 commit comments

Comments
 (0)