From f565dc6647cf0456939f2ef8de920ef585569160 Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Mon, 29 Jun 2020 14:35:27 -0700 Subject: DOC: Add dep directive to alen docstring. alen was deprecated in 1.18. Adds corresponding directive to the docstring to make this information more visible to the user. --- numpy/core/fromnumeric.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/core/fromnumeric.py') diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 412d9fe6a..c1a220dfd 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -2850,6 +2850,9 @@ def alen(a): """ Return the length of the first dimension of the input array. + .. deprecated:: 1.18 + `numpy.alen` is deprecated, use `len` instead. + Parameters ---------- a : array_like -- cgit v1.2.1