numpy.array(..., copy=False) -> numpy.asarray(...)

For numpy 2.0
This commit is contained in:
Jan Petykiewicz 2024-07-29 02:37:48 -07:00
commit ad0adec8e8
6 changed files with 13 additions and 13 deletions

View file

@ -34,7 +34,7 @@ class Path(Shape):
and an offset.
Note that the setter for `Path.vertices` may (but may not) create a copy of the
passed vertex coordinates. See `numpy.array(..., copy=False)` for details.
passed vertex coordinates. See `numpy.asarray()` for details.
A normalized_form(...) is available, but can be quite slow with lots of vertices.
"""
@ -119,7 +119,7 @@ class Path(Shape):
Vertices of the path (Nx2 ndarray: `[[x0, y0], [x1, y1], ...]`
When setting, note that a copy of the provided vertices may or may not be made,
following the rules from `numpy.array(.., copy=False)`.
following the rules from `numpy.asarray()`.
"""
return self._vertices