You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DOC: Any reason to continue using ..note vs ..deprecated? #7059
In the numpdoc guideline, I notice the .. note:: directive is used to mark deprecation warnings in docstrings. However, Sphinx appears to have a .. deprecated:: directive. Should the current use be updated or is there are reason to keep .. note:: as the standard?
@seberg Is this still a problem. I would like to work on it. As I understand I will have to change all instances of ..note:: directive used for deprecation to ..deprecated:: in the numpy docs?
The first one is not a deprecation. The second one (np.rank) is. In fact perhaps the correct thing to do with this is to either remove the function entirely (it has been deprecated since v1.9 five years ago) or give up the deprecation and remove the deprecation note and warning.
Activity
seberg commentedon Jan 19, 2016
Probably just habit, where ever it originally came from. Changing sounds good to me, pull requests very welcome!
rgommers commentedon Jan 19, 2016
That is outdated, the current practice is to decorate a function with
np.deprecate. We should probably just change the doc to match reality.njsmith commentedon Jan 19, 2016
That said, np.deprecate possibly should use some sort of admonition
directive to make its message more visible...
On Tue, Jan 19, 2016 at 12:54 PM, Ralf Gommers [email protected]
wrote:
Nathaniel J. Smith -- https://vorpus.org http://vorpus.org
rgommers commentedon Jan 19, 2016
that might be good. maybe
.. deprecated::indeed, assuming that that works for Sphinx >=1.2.1 (I've never used it).sameshl commentedon Jul 16, 2019
@seberg Is this still a problem. I would like to work on it. As I understand I will have to change all instances of
..note::directive used for deprecation to..deprecated::in the numpy docs?mattip commentedon Jul 16, 2019
Correct. Are there many left? They should now be
.. deprecated:: <version>sameshl commentedon Jul 16, 2019
I checked and found only 2 instances but I am not completely sure if I need to change it for the first one, so you could help me out. They are:
numpy/numpy/_pytesttester.py
Lines 90 to 91 in 88021a5
numpy/numpy/core/fromnumeric.py
Lines 3583 to 3586 in 88021a5
mattip commentedon Jul 16, 2019
The first one is not a deprecation. The second one (
np.rank) is. In fact perhaps the correct thing to do with this is to either remove the function entirely (it has been deprecated since v1.9 five years ago) or give up the deprecation and remove the deprecation note and warning.sameshl commentedon Jul 17, 2019
I think as
np.rankhas been deprecated for more than 5 years now it would make more sense to remove it entirely. I could do that.mattip commentedon Aug 18, 2019
Closing. There are no more
.. notedirectives that should be.. deprecate. Please reopen (or just issue a PR) if I am mistaken