Skip to content

Commit 1b9de90

Browse files
committed
Remove unused imports
1 parent baad4cd commit 1b9de90

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎cuda_core/cuda/core/_device.pyx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ from cuda.bindings cimport cydriver
99
from cuda.core._utils.cuda_utils cimport HANDLE_RETURN
1010

1111
import threading
12-
from typing import Optional, TYPE_CHECKING, Union
12+
from typing import TYPE_CHECKING
1313

1414
from cuda.core._context import Context, ContextOptions
1515
from cuda.core._event import Event, EventOptions
@@ -1217,7 +1217,7 @@ class Device:
12171217
def __reduce__(self):
12181218
return Device, (self.device_id,)
12191219

1220-
def set_current(self, ctx: Context = None) -> Union[Context, None]:
1220+
def set_current(self, ctx: Context = None) -> Context | None:
12211221
"""Set device to be used for GPU executions.
12221222

12231223
Initializes CUDA and sets the calling thread to a valid CUDA
@@ -1233,7 +1233,7 @@ class Device:
12331233

12341234
Returns
12351235
-------
1236-
Union[:obj:`~_context.Context`, None], optional
1236+
:obj:`~_context.Context`, optional
12371237
Popped context.
12381238

12391239
Examples

0 commit comments

Comments
 (0)