Skip to content

Commit

Permalink
Merge pull request #24442 from liang3zy22/arrayterrecfunc
Browse files Browse the repository at this point in the history
DOC: Fix reference warning in Arrayterator and recfunctions.
  • Loading branch information
mattip committed Aug 20, 2023
2 parents 3dc3d14 + a8c30c7 commit f884cf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions numpy/lib/arrayterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ class Arrayterator:
See Also
--------
ndenumerate : Multidimensional array iterator.
flatiter : Flat array iterator.
memmap : Create a memory-map to an array stored in a binary file on disk.
numpy.ndenumerate : Multidimensional array iterator.
numpy.flatiter : Flat array iterator.
numpy.memmap : Create a memory-map to an array stored
in a binary file on disk.
Notes
-----
Expand Down
4 changes: 2 additions & 2 deletions numpy/lib/recfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,8 @@ def structured_to_unstructured(arr, dtype=None, copy=False, casting='unsafe'):
copy : bool, optional
If true, always return a copy. If false, a view is returned if
possible, such as when the `dtype` and strides of the fields are
suitable and the array subtype is one of `np.ndarray`, `np.recarray`
or `np.memmap`.
suitable and the array subtype is one of `numpy.ndarray`,
`numpy.recarray` or `numpy.memmap`.
.. versionchanged:: 1.25.0
A view can now be returned if the fields are separated by a
Expand Down

0 comments on commit f884cf6

Please sign in to comment.