summaryrefslogtreecommitdiff
path: root/numpy/core/shape_base.py
diff options
context:
space:
mode:
authorluzpaz <luzpaz@users.noreply.github.com>2019-05-31 03:13:33 -0400
committerMatti Picus <matti.picus@gmail.com>2019-05-31 10:13:33 +0300
commit0c70787c04d7b0febacb14edfe214cb68d87b6c3 (patch)
treea518387f3e9134d753ac4d09009ab4764a8dd4b2 /numpy/core/shape_base.py
parent43465f725bc47a36f08c5e69a61c2702a97491b8 (diff)
downloadnumpy-0c70787c04d7b0febacb14edfe214cb68d87b6c3.tar.gz
MAINT: Misc. typo fixes (#13664)
* DOC, MAINT: Misc. typo fixes Found via `codespell`
Diffstat (limited to 'numpy/core/shape_base.py')
-rw-r--r--numpy/core/shape_base.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py
index 45115adb6..ccec25a7a 100644
--- a/numpy/core/shape_base.py
+++ b/numpy/core/shape_base.py
@@ -555,10 +555,10 @@ def _concatenate_shapes(shapes, axis):
ret[(slice(None),) * axis + sl_c] == c
```
- Thses are called slice prefixes since they are used in the recursive
+ These are called slice prefixes since they are used in the recursive
blocking algorithm to compute the left-most slices during the
recursion. Therefore, they must be prepended to rest of the slice
- that was computed deeper in the recusion.
+ that was computed deeper in the recursion.
These are returned as tuples to ensure that they can quickly be added
to existing slice tuple without creating a new tuple everytime.
@@ -841,9 +841,9 @@ def block(arrays):
return _block_concatenate(arrays, list_ndim, result_ndim)
-# Theses helper functions are mostly used for testing.
+# These helper functions are mostly used for testing.
# They allow us to write tests that directly call `_block_slicing`
-# or `_block_concatenate` without blocking large arrays to forse the wisdom
+# or `_block_concatenate` without blocking large arrays to force the wisdom
# to trigger the desired path.
def _block_setup(arrays):
"""