From a566cd1c7110d36d0e7a1f2746ea61e45f49eb89 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Fri, 16 Jul 2021 16:35:13 -0600 Subject: Change the type hint for stream __dlpack__ to just None --- numpy/_array_api/_array_object.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/_array_api/_array_object.py') diff --git a/numpy/_array_api/_array_object.py b/numpy/_array_api/_array_object.py index 06cb1e925..4e3c7b344 100644 --- a/numpy/_array_api/_array_object.py +++ b/numpy/_array_api/_array_object.py @@ -300,11 +300,11 @@ class Array: res = self._array.__bool__() return res - def __dlpack__(self: Array, /, *, stream: Optional[Union[int, Any]] = None) -> PyCapsule: + def __dlpack__(self: Array, /, *, stream: None = None) -> PyCapsule: """ Performs the operation __dlpack__. """ - res = self._array.__dlpack__(stream=None) + res = self._array.__dlpack__(stream=stream) return self.__class__._new(res) def __dlpack_device__(self: Array, /) -> Tuple[IntEnum, int]: -- cgit v1.2.1