@@ -326,7 +326,8 @@ impl<T: Element, D: Dimension> PyArray<T, D> {
326
326
/// # Example
327
327
///
328
328
/// ```
329
- /// use numpy::{PyArray3, PyArrayMethods, PyUntypedArrayMethods};
329
+ /// use numpy::prelude::*;
330
+ /// use numpy::PyArray3;
330
331
/// use pyo3::Python;
331
332
///
332
333
/// Python::with_gil(|py| {
@@ -1329,7 +1330,8 @@ impl<T: Element, D> PyArray<T, D> {
1329
1330
/// # Example
1330
1331
///
1331
1332
/// ```
1332
- /// use numpy::{PyArray, PyArrayMethods, PyUntypedArrayMethods};
1333
+ /// use numpy::prelude::*;
1334
+ /// use numpy::PyArray;
1333
1335
/// use pyo3::Python;
1334
1336
///
1335
1337
/// Python::with_gil(|py| {
@@ -1846,8 +1848,8 @@ pub trait PyArrayMethods<'py, T, D>: PyUntypedArrayMethods<'py> {
1846
1848
1847
1849
/// Extends or truncates the dimensions of an array.
1848
1850
///
1849
- /// This method works only on [contiguous][PyUntypedArray ::is_contiguous] arrays.
1850
- /// Missing elements will be initialized as if calling [`zeros`][Self::zeros ].
1851
+ /// This method works only on [contiguous][PyUntypedArrayMethods ::is_contiguous] arrays.
1852
+ /// Missing elements will be initialized as if calling [`zeros`][PyArray::zeros_bound ].
1851
1853
///
1852
1854
/// See also [`ndarray.resize`][ndarray-resize] and [`PyArray_Resize`][PyArray_Resize].
1853
1855
///
@@ -1859,7 +1861,8 @@ pub trait PyArrayMethods<'py, T, D>: PyUntypedArrayMethods<'py> {
1859
1861
/// # Example
1860
1862
///
1861
1863
/// ```
1862
- /// use numpy::{PyArray, PyArrayMethods, PyUntypedArrayMethods};
1864
+ /// use numpy::prelude::*;
1865
+ /// use numpy::PyArray;
1863
1866
/// use pyo3::Python;
1864
1867
///
1865
1868
/// Python::with_gil(|py| {
0 commit comments