fix "shape" docstring. (#623)

This commit is contained in:
Daniel Strobusch 2024-02-04 18:21:22 +01:00 committed by GitHub
parent 16750f3c51
commit 9852af1a19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -679,7 +679,7 @@ void init_array(py::module_& m) {
"shape",
[](const array& a) { return py::tuple(py::cast(a.shape())); },
R"pbdoc(
The shape of the array as a Python list.
The shape of the array as a Python tuple.
Returns:
tuple(int): A tuple containing the sizes of each dimension.