summaryrefslogtreecommitdiff
path: root/numpy/core/records.pyi
diff options
context:
space:
mode:
authorBas van Beek <43369155+BvB93@users.noreply.github.com>2021-12-21 20:24:22 +0100
committerBas van Beek <43369155+BvB93@users.noreply.github.com>2021-12-23 21:15:00 +0100
commit7b5f39b5eeac583f822741eaf95a8229f2b5f8d7 (patch)
treea7a83a47f39d1e4e29becb5f835158e4b1c86e3a /numpy/core/records.pyi
parent99ed44df750fedfc0bbf956c88d15befd5e760cd (diff)
downloadnumpy-7b5f39b5eeac583f822741eaf95a8229f2b5f8d7.tar.gz
STY: Use subscriptable `builtins` types over the generic aliases in `typing`
Diffstat (limited to 'numpy/core/records.pyi')
-rw-r--r--numpy/core/records.pyi8
1 files changed, 3 insertions, 5 deletions
diff --git a/numpy/core/records.pyi b/numpy/core/records.pyi
index 172bab3ee..1e837b492 100644
--- a/numpy/core/records.pyi
+++ b/numpy/core/records.pyi
@@ -1,12 +1,10 @@
import os
from typing import (
- List,
Sequence,
Any,
TypeVar,
Iterable,
overload,
- Tuple,
Protocol,
)
@@ -39,7 +37,7 @@ class _SupportsReadInto(Protocol):
def tell(self, /) -> int: ...
def readinto(self, buffer: memoryview, /) -> int: ...
-__all__: List[str]
+__all__: list[str]
@overload
def fromarrays(
@@ -67,7 +65,7 @@ def fromarrays(
@overload
def fromrecords(
- recList: _ArrayLikeVoid_co | Tuple[Any, ...] | _NestedSequence[Tuple[Any, ...]],
+ recList: _ArrayLikeVoid_co | tuple[Any, ...] | _NestedSequence[tuple[Any, ...]],
dtype: DTypeLike = ...,
shape: None | _ShapeLike = ...,
formats: None = ...,
@@ -78,7 +76,7 @@ def fromrecords(
) -> _RecArray[record]: ...
@overload
def fromrecords(
- recList: _ArrayLikeVoid_co | Tuple[Any, ...] | _NestedSequence[Tuple[Any, ...]],
+ recList: _ArrayLikeVoid_co | tuple[Any, ...] | _NestedSequence[tuple[Any, ...]],
dtype: None = ...,
shape: None | _ShapeLike = ...,
*,