Skip to content

Commit b8b0d88

Browse files
authored
Merge pull request numpy#26881 from DimitriPapadopoulos/codespell
DOC, MAINT: fix typos found by codespell
2 parents 4f0dc6a + d7f8f16 commit b8b0d88

24 files changed

+25
-25
lines changed

doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ PAPER ?=
1717
DOXYGEN ?= doxygen
1818
# For merging a documentation archive into a git checkout of numpy/doc
1919
# Turn a tag like v1.18.0 into 1.18
20-
# Use sed -n -e 's/patttern/match/p' to return a blank value if no match
20+
# Use sed -n -e 's/pattern/match/p' to return a blank value if no match
2121
TAG ?= $(shell git describe --tag | sed -n -e's,v\([1-9]\.[0-9]*\)\.[0-9].*,\1,p')
2222

2323
FILES=

doc/neps/nep-0055-string_dtype.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ in the array buffer as a short string.
990990

991991
No matter where it is stored, once a string is initialized it is marked with the
992992
``NPY_STRING_INITIALIZED`` flag. This lets us clearly distinguish between an
993-
unitialized empty string and a string that has been mutated into the empty
993+
uninitialized empty string and a string that has been mutated into the empty
994994
string.
995995

996996
The size of the allocation is stored in the arena to allow reuse of the arena

doc/neps/nep-0056-array-api-main-namespace.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ three types of behavior rather than two - ``copy=None`` means "copy if needed".
302302
an exception because they use* ``copy=False`` *explicitly in their copy but a
303303
copy was previously made anyway, they have to inspect their code and determine
304304
whether the intent of the code was the old or the new semantics (both seem
305-
rougly equally likely), and adapt the code as appropriate. We expect most cases
305+
roughly equally likely), and adapt the code as appropriate. We expect most cases
306306
to be* ``np.array(..., copy=False)``, *because until a few years ago that had
307307
lower overhead than* ``np.asarray(...)``. *This was solved though, and*
308308
``np.asarray(...)`` *is idiomatic NumPy usage.*

doc/source/numpy_2_0_migration_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ have been added for setting the real or imaginary part.
213213
The underlying type remains a struct under C++ (all of the above still remains
214214
valid).
215215

216-
This has implications for Cython. It is recommened to always use the native
216+
This has implications for Cython. It is recommended to always use the native
217217
typedefs ``cfloat_t``, ``cdouble_t``, ``clongdouble_t`` rather than the NumPy
218218
types ``npy_cfloat``, etc, unless you have to interface with C code written
219219
using the NumPy types. You can still write cython code using the ``c.real`` and

doc/source/reference/array_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ upgraded to given NumPy's
1818
For usage guidelines for downstream libraries and end users who want to write
1919
code that will work with both NumPy and other array libraries, we refer to the
2020
documentation of the array API standard itself and to code and
21-
developer-focused documention in SciPy and scikit-learn.
21+
developer-focused documentation in SciPy and scikit-learn.
2222

2323
Note that in order to use standard-complaint code with older NumPy versions
2424
(< 2.0), the `array-api-compat

doc/source/reference/c-api/array.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ cannot not be accessed directly.
823823
824824
.. c:function:: PyArray_ArrayDescr *PyDataType_SUBARRAY(PyArray_Descr *descr)
825825
826-
Information about a subarray dtype eqivalent to the Python `np.dtype.base`
826+
Information about a subarray dtype equivalent to the Python `np.dtype.base`
827827
and `np.dtype.shape`.
828828
829829
If this is non- ``NULL``, then this data-type descriptor is a
@@ -3975,7 +3975,7 @@ the C-API is needed then some additional steps must be taken.
39753975
behavior as NumPy 1.x.
39763976
39773977
.. note::
3978-
Windows never had shared visbility although you can use this macro
3978+
Windows never had shared visibility although you can use this macro
39793979
to achieve it. We generally discourage sharing beyond shared boundary
39803980
lines since importing the array API includes NumPy version checks.
39813981

doc/source/release/2.0.0-notes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ The ``metadata`` field is kept, but the macro version should also be preferred.
653653

654654
Descriptor ``elsize`` and ``alignment`` access
655655
----------------------------------------------
656-
Unless compiling only with NumPy 2 support, the ``elsize`` and ``aligment``
656+
Unless compiling only with NumPy 2 support, the ``elsize`` and ``alignment``
657657
fields must now be accessed via ``PyDataType_ELSIZE``,
658658
``PyDataType_SET_ELSIZE``, and ``PyDataType_ALIGNMENT``.
659659
In cases where the descriptor is attached to an array, we advise

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
*/

0 commit comments

Comments
 (0)