Skip to content

Commit 030d72b

Browse files
authored
Merge pull request numpy#25962 from mattip/doc-fixes
DOC: fix typos and rearrange CI
2 parents 3d4aed3 + 5b6bc7f commit 030d72b

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.circleci/config.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,6 @@ jobs:
6868
towncrier build --version $VERSION --yes
6969
./tools/ci/test_all_newsfragments_used.py
7070
71-
- run:
72-
name: run doctests on documentation
73-
command: |
74-
. venv/bin/activate
75-
# Note: keep these two checks separate, because they seem to
76-
# influence each other through changing global state (e.g., via
77-
# `np.polynomial.set_default_printstyle`)
78-
python tools/refguide_check.py --rst
79-
python tools/refguide_check.py --doctests
80-
8171
- run:
8272
name: build devdocs w/ref warnings
8373
command: |
@@ -104,6 +94,16 @@ jobs:
10494
path: doc/neps/_build/html/
10595
# destination: neps
10696

97+
- run:
98+
name: run doctests on documentation
99+
command: |
100+
. venv/bin/activate
101+
# Note: keep these two checks separate, because they seem to
102+
# influence each other through changing global state (e.g., via
103+
# `np.polynomial.set_default_printstyle`)
104+
python tools/refguide_check.py --rst
105+
python tools/refguide_check.py --doctests
106+
107107
- persist_to_workspace:
108108
root: ~/repo
109109
paths:

doc/source/numpy_2_0_migration_guide.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ dtype/descriptor itself is attached to an array (e.g. ``arr->descr->elsize``)
9898
this is best replaced with ``PyArray_ITEMSIZE(arr)``.
9999

100100
Where not possible, new accessor functions are required:
101+
101102
* ``PyDataType_ELSIZE`` and ``PyDataType_SET_ELSIZE`` (note that the result
102103
is now ``npy_intp`` and not ``int``).
103104
* ``PyDataType_ALIGNENT``

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ and its sub-types).
6060
success.
6161
6262
.. note::
63-
In general, prefer the use of :c:function:`PyArray_Pack` when
63+
In general, prefer the use of :c:func:`PyArray_Pack` when
6464
handling arbitrary Python objects. Setitem is for example not able
6565
to handle arbitrary casts between different dtypes.
6666
@@ -781,7 +781,7 @@ cannot not be accessed directly.
781781
.. versionchanged:: 2.0
782782
Prior to NumPy 2.0 the ABI was different but unnecessary large for user
783783
DTypes. These accessors were all added in 2.0 and can be backported
784-
(see :ref:`_migration_c_descr`).
784+
(see :ref:`migration_c_descr`).
785785
786786
.. c:function:: npy_intp PyDataType_ELSIZE(PyArray_Descr *descr)
787787

0 commit comments

Comments
 (0)