summaryrefslogtreecommitdiff
path: root/numpy/core/_internal.pyi
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/_internal.pyi')
-rw-r--r--numpy/core/_internal.pyi8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/_internal.pyi b/numpy/core/_internal.pyi
index 51b2a87dd..8a25ef2cb 100644
--- a/numpy/core/_internal.pyi
+++ b/numpy/core/_internal.pyi
@@ -1,4 +1,4 @@
-from typing import Any, TypeVar, Type, overload, Generic
+from typing import Any, TypeVar, overload, Generic
import ctypes as ct
from numpy import ndarray
@@ -25,6 +25,6 @@ class _ctypes(Generic[_PT]):
@property
def _as_parameter_(self) -> ct.c_void_p: ...
- def data_as(self, obj: Type[_CastT]) -> _CastT: ...
- def shape_as(self, obj: Type[_CT]) -> ct.Array[_CT]: ...
- def strides_as(self, obj: Type[_CT]) -> ct.Array[_CT]: ...
+ def data_as(self, obj: type[_CastT]) -> _CastT: ...
+ def shape_as(self, obj: type[_CT]) -> ct.Array[_CT]: ...
+ def strides_as(self, obj: type[_CT]) -> ct.Array[_CT]: ...