summaryrefslogtreecommitdiff
path: root/numpy/lib/stride_tricks.pyi
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/stride_tricks.pyi')
-rw-r--r--numpy/lib/stride_tricks.pyi16
1 files changed, 16 insertions, 0 deletions
diff --git a/numpy/lib/stride_tricks.pyi b/numpy/lib/stride_tricks.pyi
new file mode 100644
index 000000000..d2e744b5a
--- /dev/null
+++ b/numpy/lib/stride_tricks.pyi
@@ -0,0 +1,16 @@
+from typing import Any, List
+
+from numpy.typing import _ShapeLike, _Shape
+
+__all__: List[str]
+
+class DummyArray:
+ __array_interface__: Any
+ base: Any
+ def __init__(self, interface, base=...): ...
+
+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: _ShapeLike) -> _Shape: ...
+def broadcast_arrays(*args, subok=...): ...