8000 DOC: Fix some incorrect RST definition lists · numpy/numpy@eb8913d · GitHub
[go: up one dir, main page]

Skip to content

Commit eb8913d

Browse files
committed
DOC: Fix some incorrect RST definition lists
1 parent 2df36ec commit eb8913d

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

numpy/add_newdocs.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
has_multi_index : bool
263263
If True, the iterator was created with the "multi_index" flag,
264264
and the property `multi_index` can be used to retrieve it.
265-
index :
265+
index
266266
When the "c_index" or "f_index" flag was used, this property
267267
provides access to the index. Raises a ValueError if accessed
268268
and `has_index` is False.
@@ -273,10 +273,10 @@
273273
An index which matches the order of iteration.
274274
itersize : int
275275
Size of the iterator.
276-
itviews :
276+
itviews
277277
Structured view(s) of `operands` in memory, matching the reordered
278278
and optimized iterator access pattern.
279-
multi_index :
279+
multi_index
280280
When the "multi_index" flag was used, this property
281281
provides access to the index. Raises a ValueError if accessed
282282
accessed and `has_multi_index` is False.
@@ -288,7 +288,7 @@
288288
The array(s) to be iterated over.
289289
shape : tuple of ints
290290
Shape tuple, the shape of the iterator.
291-
value :
291+
value
292292
Value of `operands` at current iteration. Normally, this is a
293293
tuple of array scalars, but if the flag "external_loop" is used,
294294
it is a tuple of one dimensional arrays.
@@ -481,6 +481,11 @@ def luf(lamdaexpr, *args, **kwargs):
481481
Amongst others, it has ``shape`` and ``nd`` properties, and
482482
may be used as an iterator.
483483
484+
See Also
485+
--------
486+
broadcast_arrays
487+
broadcast_to
488+
484489
Examples
485490
--------
486491
Manually adding two vectors, using broadcasting:

numpy/lib/function_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def flip(m, axis):
5757
----------
5858
m : array_like
5959
Input array.
60-
axis: integer
60+
axis : integer
6161
Axis in array, which entries are reversed.
6262
6363

numpy/lib/polynomial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
439439
Polynomial coefficients, highest power first. If `y` was 2-D, the
440440
coefficients for `k`-th data set are in ``p[:,k]``.
441441
442-
residuals, rank, singular_values, rcond :
442+
residuals, rank, singular_values, rcond
443443
Present only if `full` = True. Residuals of the least-squares fit,
444444
the effective rank of the scaled Vandermonde coefficient matrix,
445445
its singular values, and the specified value of `rcond`. For more

numpy/lib/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@ def _info(obj, output=sys.stdout):
393393
394394
Parameters
395395
----------
396-
obj: ndarray
396+
obj : ndarray
397397
Must be ndarray, not checked.
398-
output:
398+
output
399399
Where printed output goes.
400400
401401
Notes

numpy/polynomial/_polybase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,13 @@ class as self with identical domain and window. If so,
223223
224224
Returns
225225
-------
226-
coef:
226+
coef
227227
The coefficients of`other` if it is a compatible instance,
228228
of ABCPolyBase, otherwise `other`.
229229
230230
Raises
231231
------
232-
TypeError:
232+
TypeError
233233
When `other` is an incompatible instance of ABCPolyBase.
234234
235235
"""

0 commit comments

Comments
 (0)
0