diff options
author | Matt-Ord <55235095+Matt-Ord@users.noreply.github.com> | 2021-02-23 16:54:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 16:54:28 +0000 |
commit | 1f972db7df7443c2dcff50eb6a110f297f215fb4 (patch) | |
tree | 2c401b49cff4d0684caaece7253c0fae25daa978 /numpy | |
parent | 691726475716c573863de051f17d3ed47500ad24 (diff) | |
download | numpy-1f972db7df7443c2dcff50eb6a110f297f215fb4.tar.gz |
Apply suggestions from code review
Fixed annotations of eye()
Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/__init__.pyi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi index 7eebe3a87..148a63583 100644 --- a/numpy/__init__.pyi +++ b/numpy/__init__.pyi @@ -410,13 +410,13 @@ expand_dims: Any extract: Any def eye( N: int, - M: int = ..., + M: Optional[int] = ..., k: int = ..., dtype: DTypeLike = ..., - order: str = ..., + order: _OrderCF = ..., *, - like: ArrayLike = ... -) -> ndarray: ... + like: Optional[ArrayLike] = ... +) -> ndarray[Any, Any]: ... fill_diagonal: Any finfo: Any flip: Any |