diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-12-21 20:24:22 +0100 |
---|---|---|
committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-12-23 21:15:00 +0100 |
commit | 7b5f39b5eeac583f822741eaf95a8229f2b5f8d7 (patch) | |
tree | a7a83a47f39d1e4e29becb5f835158e4b1c86e3a /numpy/lib/arraypad.pyi | |
parent | 99ed44df750fedfc0bbf956c88d15befd5e760cd (diff) | |
download | numpy-7b5f39b5eeac583f822741eaf95a8229f2b5f8d7.tar.gz |
STY: Use subscriptable `builtins` types over the generic aliases in `typing`
Diffstat (limited to 'numpy/lib/arraypad.pyi')
-rw-r--r-- | numpy/lib/arraypad.pyi | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/numpy/lib/arraypad.pyi b/numpy/lib/arraypad.pyi index d7c5f4844..1f74f2506 100644 --- a/numpy/lib/arraypad.pyi +++ b/numpy/lib/arraypad.pyi @@ -1,10 +1,7 @@ from typing import ( Literal as L, Any, - Dict, - List, overload, - Tuple, TypeVar, Protocol, ) @@ -25,9 +22,9 @@ class _ModeFunc(Protocol): def __call__( self, vector: NDArray[Any], - iaxis_pad_width: Tuple[int, int], + iaxis_pad_width: tuple[int, int], iaxis: int, - kwargs: Dict[str, Any], + kwargs: dict[str, Any], /, ) -> None: ... @@ -47,7 +44,7 @@ _ModeKind = L[ _ArrayLike = _FiniteNestedSequence[_SupportsArray[dtype[_SCT]]] -__all__: List[str] +__all__: list[str] # TODO: In practice each keyword argument is exclusive to one or more # specific modes. Consider adding more overloads to express this in the future. |