Skip to content

Commit 99dd094

Browse files
authored
Merge pull request numpy#27291 from DimitriPapadopoulos/codespell
DOC, MAINT: Fix new typos found by codespell
2 parents f777ddc + 787d8ae commit 99dd094

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

doc/release/upcoming_changes/27147.performance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
benchmarking, there are 5 clusters of performance around these kernels:
33
``PRESCOTT NEHALEM SANDYBRIDGE HASWELL SKYLAKEX``.
44

5-
* OpenBLAS on windows is linked without quadmath, simplfying licensing
5+
* OpenBLAS on windows is linked without quadmath, simplifying licensing
66

77
* Due to a regression in OpenBLAS on windows, the performance improvements
88
when using multiple threads for OpenBLAS 0.3.26 were reverted.

doc/source/reference/arrays.promotion.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ would give.
172172

173173
Behavior of ``sum`` and ``prod``
174174
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
175-
**``np.sum`` and ``np.prod``:** Will alway return the default integer type
175+
**``np.sum`` and ``np.prod``:** Will always return the default integer type
176176
when summing over integer values (or booleans). This is usually an ``int64``.
177177
The reason for this is that integer summations are otherwise very likely
178178
to overflow and give confusing results.
@@ -214,7 +214,7 @@ The following rules apply:
214214
non-ascii characters.
215215
* For some purposes NumPy will promote almost any other datatype to strings.
216216
This applies to array creation or concatenation.
217-
* The array constructers like ``np.array()`` will use ``object`` dtype when
217+
* The array constructors like ``np.array()`` will use ``object`` dtype when
218218
there is no viable promotion.
219219
* Structured dtypes can promote when their field names and order matches.
220220
In that case all fields are promoted individually.

numpy/_core/src/multiarray/dlpack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ array_dlpack_deleter_unversioned(DLManagedTensor *self)
5757

5858

5959
/*
60-
* Deleter for a DLPack capsule wrapping a DLManagedTensor(Versioed).
60+
* Deleter for a DLPack capsule wrapping a DLManagedTensor(Versioned).
6161
*
6262
* This is exactly as mandated by dlpack
6363
*/

numpy/_core/src/multiarray/scalartypes.c.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ find_binary_operation_path(
253253
*
254254
* However, NumPy (historically) made this often work magically because
255255
* ufuncs for object dtype end up casting to object with `.item()`. This in
256-
* turn ofthen returns a Python type (e.g. float for float32, float64)!
256+
* turn often returns a Python type (e.g. float for float32, float64)!
257257
* Retrying then succeeds. So if (and only if) `self.item()` returns a new
258258
* type, we can safely attempt the operation (again) with that.
259259
*/

numpy/_core/tests/test_array_coercion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ def __getitem__(self):
763763
np.array(BadSequence())
764764

765765
def test_array_interface_descr_optional(self):
766-
# The descr should be optional regresion test for gh-27249
766+
# The descr should be optional regression test for gh-27249
767767
arr = np.ones(10, dtype="V10")
768768
iface = arr.__array_interface__
769769
iface.pop("descr")

0 commit comments

Comments
 (0)