diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2021-04-25 14:21:49 +0200 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2021-04-26 16:53:56 +0200 |
commit | cf68ebfaaa3d1f6d84029da033e78c785322aac3 (patch) | |
tree | 925fbb7cb9db16a90cf25064ae1093df76bf972c /numpy/lib/stride_tricks.pyi | |
parent | f71c496ddc7caa2a47b2750cce455f6129def261 (diff) | |
download | numpy-cf68ebfaaa3d1f6d84029da033e78c785322aac3.tar.gz |
MAINT: Import `np.lib`-based functions from aforementioned namespace
Diffstat (limited to 'numpy/lib/stride_tricks.pyi')
-rw-r--r-- | numpy/lib/stride_tricks.pyi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/lib/stride_tricks.pyi b/numpy/lib/stride_tricks.pyi index 5e49eff6d..d2e744b5a 100644 --- a/numpy/lib/stride_tricks.pyi +++ b/numpy/lib/stride_tricks.pyi @@ -1,5 +1,7 @@ from typing import Any, List +from numpy.typing import _ShapeLike, _Shape + __all__: List[str] class DummyArray: @@ -10,5 +12,5 @@ class DummyArray: def as_strided(x, shape=..., strides=..., subok=..., writeable=...): ... def sliding_window_view(x, window_shape, axis=..., *, subok=..., writeable=...): ... def broadcast_to(array, shape, subok=...): ... -def broadcast_shapes(*args): ... +def broadcast_shapes(*args: _ShapeLike) -> _Shape: ... def broadcast_arrays(*args, subok=...): ... |