summaryrefslogtreecommitdiff
path: root/numpy/tests/test_public_api.py
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2021-03-15 14:50:43 +0100
committerBas van Beek <b.f.van.beek@vu.nl>2021-03-15 14:50:43 +0100
commit5db3366c4e879b8f779a0ae4048c7637854f1588 (patch)
treef500517c01ce6cc3512845a70fef7d0c6b23086f /numpy/tests/test_public_api.py
parent79258e9128ec7a5f8f2c4b75847d1b4bec664901 (diff)
downloadnumpy-5db3366c4e879b8f779a0ae4048c7637854f1588.tar.gz
API: Formally classify `np.lib.stride_tricks` as part of the public API
With `as_strided`, and the newly introduced `sliding_window_view` function, there are currently 2 public objects that can: a. Only be imported from a private module b. Are publicly documented to-be imported from aforementioned module Both observations are problematic and in need of rectification. This commit therefore moves `np.lib.stride_tricks` to the `PUBLIC_MODULES` list.
Diffstat (limited to 'numpy/tests/test_public_api.py')
-rw-r--r--numpy/tests/test_public_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/tests/test_public_api.py b/numpy/tests/test_public_api.py
index 69430eeda..c7a789b21 100644
--- a/numpy/tests/test_public_api.py
+++ b/numpy/tests/test_public_api.py
@@ -154,6 +154,7 @@ PUBLIC_MODULES = ['numpy.' + s for s in [
"lib.mixins",
"lib.recfunctions",
"lib.scimath",
+ "lib.stride_tricks",
"linalg",
"ma",
"ma.extras",
@@ -280,7 +281,6 @@ PRIVATE_BUT_PRESENT_MODULES = ['numpy.' + s for s in [
"lib.npyio",
"lib.polynomial",
"lib.shape_base",
- "lib.stride_tricks",
"lib.twodim_base",
"lib.type_check",
"lib.ufunclike",