From da20537f70f78ca0415d4ecf301fcfaec75da0dd Mon Sep 17 00:00:00 2001 From: Michael Seifert Date: Sat, 23 Sep 2017 16:18:12 +0200 Subject: DOC: Fix ndarray.__setstate__ documentation, it only takes one argument. [skip ci] --- numpy/add_newdocs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'numpy/add_newdocs.py') diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index 307a8d837..55538ad1b 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -3117,9 +3117,12 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('__reduce__', add_newdoc('numpy.core.multiarray', 'ndarray', ('__setstate__', - """a.__setstate__(version, shape, dtype, isfortran, rawdata) + """a.__setstate__(state, /) For unpickling. + + The `state` argument must be a sequence that contains the following + elements: Parameters ---------- -- cgit v1.2.1