@@ -326,7 +326,8 @@ impl<T: Element, D: Dimension> PyArray<T, D> {
326326 /// # Example
327327 ///
328328 /// ```
329- /// use numpy::{PyArray3, PyArrayMethods, PyUntypedArrayMethods};
329+ /// use numpy::prelude::*;
330+ /// use numpy::PyArray3;
330331 /// use pyo3::Python;
331332 ///
332333 /// Python::with_gil(|py| {
@@ -1329,7 +1330,8 @@ impl<T: Element, D> PyArray<T, D> {
13291330 /// # Example
13301331 ///
13311332 /// ```
1332- /// use numpy::{PyArray, PyArrayMethods, PyUntypedArrayMethods};
1333+ /// use numpy::prelude::*;
1334+ /// use numpy::PyArray;
13331335 /// use pyo3::Python;
13341336 ///
13351337 /// Python::with_gil(|py| {
@@ -1846,8 +1848,8 @@ pub trait PyArrayMethods<'py, T, D>: PyUntypedArrayMethods<'py> {
18461848
18471849 /// Extends or truncates the dimensions of an array.
18481850 ///
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 ].
18511853 ///
18521854 /// See also [`ndarray.resize`][ndarray-resize] and [`PyArray_Resize`][PyArray_Resize].
18531855 ///
@@ -1859,7 +1861,8 @@ pub trait PyArrayMethods<'py, T, D>: PyUntypedArrayMethods<'py> {
18591861 /// # Example
18601862 ///
18611863 /// ```
1862- /// use numpy::{PyArray, PyArrayMethods, PyUntypedArrayMethods};
1864+ /// use numpy::prelude::*;
1865+ /// use numpy::PyArray;
18631866 /// use pyo3::Python;
18641867 ///
18651868 /// Python::with_gil(|py| {
0 commit comments