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/matrixlib | |
| parent | 99ed44df750fedfc0bbf956c88d15befd5e760cd (diff) | |
| download | numpy-7b5f39b5eeac583f822741eaf95a8229f2b5f8d7.tar.gz | |
STY: Use subscriptable `builtins` types over the generic aliases in `typing`
Diffstat (limited to 'numpy/matrixlib')
| -rw-r--r-- | numpy/matrixlib/__init__.pyi | 6 | ||||
| -rw-r--r-- | numpy/matrixlib/defmatrix.pyi | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/numpy/matrixlib/__init__.pyi b/numpy/matrixlib/__init__.pyi index c1b82d2ec..b0ca8c9ca 100644 --- a/numpy/matrixlib/__init__.pyi +++ b/numpy/matrixlib/__init__.pyi @@ -1,5 +1,3 @@ -from typing import List - from numpy._pytesttester import PytestTester from numpy import ( @@ -12,6 +10,6 @@ from numpy.matrixlib.defmatrix import ( asmatrix as asmatrix, ) -__all__: List[str] -__path__: List[str] +__all__: list[str] +__path__: list[str] test: PytestTester diff --git a/numpy/matrixlib/defmatrix.pyi b/numpy/matrixlib/defmatrix.pyi index 6c86ea1ef..91c7fa81d 100644 --- a/numpy/matrixlib/defmatrix.pyi +++ b/numpy/matrixlib/defmatrix.pyi @@ -1,8 +1,8 @@ -from typing import List, Any, Sequence, Mapping +from typing import Any, Sequence, Mapping from numpy import matrix as matrix from numpy.typing import ArrayLike, DTypeLike, NDArray -__all__: List[str] +__all__: list[str] def bmat( obj: str | Sequence[ArrayLike] | NDArray[Any], |
