Skip to content

Commit d7f8f16

Browse files
MAINT: fix typos found by codespell
1 parent c7a9216 commit d7f8f16

17 files changed

+17
-17
lines changed

numpy/_core/include/numpy/ndarraytypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ typedef struct {
13021302
PyArrayIterObject *iters[64];
13031303
#elif defined(__cplusplus)
13041304
/*
1305-
* C++ doesn't stricly support flexible members and gives compilers
1305+
* C++ doesn't strictly support flexible members and gives compilers
13061306
* warnings (pedantic only), so we lie. We can't make it 64 because
13071307
* then Cython is unhappy (larger struct at runtime is OK smaller not).
13081308
*/

numpy/_core/include/numpy/npy_2_compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#if NPY_ABI_VERSION < 0x02000000
5454
/*
5555
* Define 2.0 feature version as it is needed below to decide whether we
56-
* compile for both 1.x and 2.x (defining it gaurantees 1.x only).
56+
* compile for both 1.x and 2.x (defining it guarantees 1.x only).
5757
*/
5858
#define NPY_2_0_API_VERSION 0x00000012
5959
/*

numpy/_core/src/_simd/_simd_vector.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static PyTypeObject PySIMDVectorType = {
9292
* miss-align load variable of 256/512-bit vector from non-aligned
9393
* 256/512-bit stack pointer.
9494
*
95-
* check the following links for more clearification:
95+
* check the following links for more clarification:
9696
* https://github.com/numpy/numpy/pull/18330#issuecomment-821539919
9797
* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49001
9898
*/

numpy/_core/src/multiarray/array_coercion.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ PyArray_DiscoverDTypeAndShape_Recursive(
11851185
}
11861186

11871187
/*
1188-
* For a sequence we need to make a copy of the final aggreate anyway.
1188+
* For a sequence we need to make a copy of the final aggregate anyway.
11891189
* There's no need to pass explicit `copy=True`, so we switch
11901190
* to `copy=None` (copy if needed).
11911191
*/

numpy/_core/src/multiarray/common_dtype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ reduce_dtypes_to_most_knowledgeable(
132132
}
133133

134134
if (res == (PyArray_DTypeMeta *)Py_NotImplemented) {
135-
/* guess at other being more "knowledgable" */
135+
/* guess at other being more "knowledgeable" */
136136
PyArray_DTypeMeta *tmp = dtypes[low];
137137
dtypes[low] = dtypes[high];
138138
dtypes[high] = tmp;

numpy/_core/src/multiarray/dtypemeta.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ PyArray_DTypeMeta *_Void_dtype = NULL;
14031403
* This function is exposed with an underscore "privately" because the
14041404
* public version is a static inline function which only calls the function
14051405
* on 2.x but directly accesses the `descr` struct on 1.x.
1406-
* Once 1.x backwards compatibility is gone, it shoudl be exported without
1406+
* Once 1.x backwards compatibility is gone, it should be exported without
14071407
* the underscore directly.
14081408
* Internally, we define a private inline function `PyDataType_GetArrFuncs`
14091409
* for convenience as we are allowed to access the `DType` slots directly.

numpy/_core/src/multiarray/multiarraymodule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ typedef struct npy_thread_unsafe_state_struct {
2323
* PyObject *value;
2424
* }
2525
*
26-
* so the initialization is thread-safe and the only possibile lock
26+
* so the initialization is thread-safe and the only possible lock
2727
* contention happens before the cache is initialized, not on every single
2828
* read.
2929
*/

numpy/_core/src/umath/special_integer_comparisons.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ get_loop(PyArrayMethod_Context *context,
293293

294294

295295
/*
296-
* Machinery to add the python integer to NumPy intger comparsisons as well
296+
* Machinery to add the python integer to NumPy integer comparsisons as well
297297
* as a special promotion to special case Python int with Python int
298298
* comparisons.
299299
*/

numpy/_core/strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
# _vec_string - Will probably not become ufuncs
6464
"mod", "decode", "encode", "translate",
6565

66-
# Removed from namespace until behavior has been crystalized
66+
# Removed from namespace until behavior has been crystallized
6767
# "join", "split", "rsplit", "splitlines",
6868
]
6969

numpy/_core/tests/test_dtype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1514,7 +1514,7 @@ def test_python_integer_promotion(self, val):
15141514
@np._no_nep50_warning()
15151515
def test_float_int_pyscalar_promote_rational(
15161516
self, weak_promotion, other, expected):
1517-
# Note that rationals are a bit akward as they promote with float64
1517+
# Note that rationals are a bit awkward as they promote with float64
15181518
# or default ints, but not float16 or uint8/int8 (which looks
15191519
# inconsistent here). The new promotion fixes this (partially?)
15201520
if not weak_promotion and type(other) == float:

0 commit comments

Comments
 (0)