diff options
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. |
