diff options
| author | Bas van Beek <b.f.van.beek@vu.nl> | 2021-02-04 19:05:38 +0100 |
|---|---|---|
| committer | Bas van Beek <b.f.van.beek@vu.nl> | 2021-02-09 15:14:57 +0100 |
| commit | df68378d05cbb4ecf7eeb5e45c8a538d3dce3742 (patch) | |
| tree | 3b5910249f605a5e78725dbc1832c0edf449f7c6 /numpy | |
| parent | edf2d0045220c5edc78d9c450a90b018c4967697 (diff) | |
| download | numpy-df68378d05cbb4ecf7eeb5e45c8a538d3dce3742.tar.gz | |
ENH: Expose `ufunclike` annotations to the `np` and `np.lib` namespace
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/__init__.pyi | 9 | ||||
| -rw-r--r-- | numpy/lib/__init__.pyi | 9 |
2 files changed, 12 insertions, 6 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi index 19711d80b..351cacffa 100644 --- a/numpy/__init__.pyi +++ b/numpy/__init__.pyi @@ -332,6 +332,12 @@ from numpy.core.shape_base import ( vstack as vstack, ) +from numpy.lib.ufunclike import ( + fix as fix, + isposinf as isposinf, + isneginf as isneginf, +) + __all__: List[str] __path__: List[str] __version__: str @@ -401,7 +407,6 @@ extract: Any eye: Any fill_diagonal: Any finfo: Any -fix: Any flip: Any fliplr: Any flipud: Any @@ -437,8 +442,6 @@ is_busday: Any iscomplex: Any iscomplexobj: Any isin: Any -isneginf: Any -isposinf: Any isreal: Any isrealobj: Any iterable: Any diff --git a/numpy/lib/__init__.pyi b/numpy/lib/__init__.pyi index a8eb24207..4468d27e9 100644 --- a/numpy/lib/__init__.pyi +++ b/numpy/lib/__init__.pyi @@ -1,5 +1,11 @@ from typing import Any, List +from numpy.lib.ufunclike import ( + fix as fix, + isposinf as isposinf, + isneginf as isneginf, +) + __all__: List[str] emath: Any @@ -108,9 +114,6 @@ tril_indices: Any tril_indices_from: Any triu_indices: Any triu_indices_from: Any -fix: Any -isneginf: Any -isposinf: Any pad: Any poly: Any roots: Any |
