diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2021-10-09 13:03:44 +0200 |
---|---|---|
committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-10-12 15:57:43 +0200 |
commit | 25fb2de8512bc066961fa566c1cc84477dfbb579 (patch) | |
tree | a41eb5c18f5848a251cdcc334fe229795fe750e1 /numpy/matrixlib/defmatrix.pyi | |
parent | 8c9cf7954b6afe3bf94ff0971398cc23817d38ef (diff) | |
download | numpy-25fb2de8512bc066961fa566c1cc84477dfbb579.tar.gz |
ENH: Add annotations for `np.matrix`
Diffstat (limited to 'numpy/matrixlib/defmatrix.pyi')
-rw-r--r-- | numpy/matrixlib/defmatrix.pyi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/numpy/matrixlib/defmatrix.pyi b/numpy/matrixlib/defmatrix.pyi new file mode 100644 index 000000000..6c86ea1ef --- /dev/null +++ b/numpy/matrixlib/defmatrix.pyi @@ -0,0 +1,15 @@ +from typing import List, Any, Sequence, Mapping +from numpy import matrix as matrix +from numpy.typing import ArrayLike, DTypeLike, NDArray + +__all__: List[str] + +def bmat( + obj: str | Sequence[ArrayLike] | NDArray[Any], + ldict: None | Mapping[str, Any] = ..., + gdict: None | Mapping[str, Any] = ..., +) -> matrix[Any, Any]: ... + +def asmatrix(data: ArrayLike, dtype: DTypeLike = ...) -> matrix[Any, Any]: ... + +mat = asmatrix |