Skip to content

Commit 87f1fcb

Browse files
committed
DOC: Also update docs for changes
1 parent b22d092 commit 87f1fcb

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,8 +1682,8 @@ the functions that must be implemented for each slot.
16821682
16831683
.. c:type:: NPY_CASTING (PyArrayMethod_ResolveDescriptors)( \
16841684
struct PyArrayMethodObject_tag *method, \
1685-
PyArray_DTypeMeta **dtypes, \
1686-
PyArray_Descr **given_descrs, \
1685+
PyArray_DTypeMeta *const *dtypes, \
1686+
PyArray_Descr *const *given_descrs, \
16871687
PyArray_Descr **loop_descrs, \
16881688
npy_intp *view_offset)
16891689
@@ -1857,7 +1857,7 @@ Typedefs for functions that users of the ArrayMethod API can implement are
18571857
described below.
18581858
18591859
.. c:type:: int (PyArrayMethod_TraverseLoop)( \
1860-
void *traverse_context, PyArray_Descr *descr, char *data, \
1860+
void *traverse_context, const PyArray_Descr *descr, char *data, \
18611861
npy_intp size, npy_intp stride, NpyAuxData *auxdata)
18621862
18631863
A traverse loop working on a single array. This is similar to the general
@@ -1880,7 +1880,7 @@ described below.
18801880
passed through in the future (for structured dtypes).
18811881
18821882
.. c:type:: int (PyArrayMethod_GetTraverseLoop)( \
1883-
void *traverse_context, PyArray_Descr *descr, \
1883+
void *traverse_context, const PyArray_Descr *descr, \
18841884
int aligned, npy_intp fixed_stride, \
18851885
PyArrayMethod_TraverseLoop **out_loop, NpyAuxData **out_auxdata, \
18861886
NPY_ARRAYMETHOD_FLAGS *flags)
@@ -1920,7 +1920,8 @@ with the rest of the ArrayMethod API.
19201920
attempt a new search for a matching loop/promoter.
19211921
19221922
.. c:type:: int (PyArrayMethod_PromoterFunction)(PyObject *ufunc, \
1923-
PyArray_DTypeMeta *op_dtypes[], PyArray_DTypeMeta *signature[], \
1923+
PyArray_DTypeMeta *const op_dtypes[], \
1924+
PyArray_DTypeMeta *const signature[], \
19241925
PyArray_DTypeMeta *new_op_dtypes[])
19251926
19261927
Type of the promoter function, which must be wrapped into a

doc/source/reference/c-api/types-and-structures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ PyArrayMethod_Context and PyArrayMethod_Spec
728728
typedef struct {
729729
PyObject *caller;
730730
struct PyArrayMethodObject_tag *method;
731-
PyArray_Descr **descriptors;
731+
PyArray_Descr *const *descriptors;
732732
} PyArrayMethod_Context
733733
734734
.. c:member:: PyObject *caller

0 commit comments

Comments
 (0)