Skip to content

Commit 4329941

Browse files
Copilotmdboom
andcommitted
Fix missed Tuple annotation in _stream.pyx file
Co-authored-by: mdboom <38294+mdboom@users.noreply.github.com>
1 parent 31b795d commit 4329941

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cuda_core/cuda/core/experimental/_stream.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ from cuda.core.experimental._utils.cuda_utils cimport (
1212
import os
1313
import warnings
1414
from dataclasses import dataclass
15-
from typing import TYPE_CHECKING, Optional, Protocol, Tuple, Union
15+
from typing import TYPE_CHECKING, Optional, Protocol, Union
1616

1717
if TYPE_CHECKING:
1818
import cuda.bindings
@@ -47,7 +47,7 @@ cdef class StreamOptions:
4747

4848

4949
class IsStreamT(Protocol):
50-
def __cuda_stream__(self) -> Tuple[int, int]:
50+
def __cuda_stream__(self) -> tuple[int, int]:
5151
"""
5252
For any Python object that is meant to be interpreted as a CUDA stream, the intent
5353
can be communicated by implementing this protocol that returns a 2-tuple: The protocol
@@ -201,7 +201,7 @@ cdef class Stream:
201201
self._owner = None
202202
self._handle = None
203203

204-
def __cuda_stream__(self) -> Tuple[int, int]:
204+
def __cuda_stream__(self) -> tuple[int, int]:
205205
"""Return an instance of a __cuda_stream__ protocol."""
206206
return (0, int(self.handle))
207207

0 commit comments

Comments
 (0)