Skip to content

Commit 31b795d

Browse files
Copilotmdboom
andcommitted
Extend typing modernization to Cython .pyx.in files
Co-authored-by: mdboom <38294+mdboom@users.noreply.github.com>
1 parent d9e335d commit 31b795d

4 files changed

Lines changed: 474 additions & 475 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ from libc.stdint cimport int32_t, uint32_t, int64_t, uint64_t
77
from libc.stddef cimport wchar_t
88
from libc.string cimport memcpy
99
from enum import Enum
10-
from typing import List, Tuple
1110
import ctypes
1211
cimport cuda.bindings.cydriver as cydriver
1312
import cuda.bindings.driver as driver
@@ -117,7 +116,7 @@ cdef class HelperKernelParams:
117116
raise TypeError("Unsupported type: " + str(type(ctype)))
118117
idx += 1
119118
else:
120-
raise TypeError("Argument 'kernelParams' is not a valid type: Tuple[Tuple[Any, ...], Tuple[Any, ...]] or PyObject implimenting Buffer Protocol or Int")
119+
raise TypeError("Argument 'kernelParams' is not a valid type: tuple[tuple[Any, ...], tuple[Any, ...]] or PyObject implimenting Buffer Protocol or Int")
121120

122121
def __dealloc__(self):
123122
if self._pyobj_acquired is True:

0 commit comments

Comments
 (0)