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
website: make "deprecation" more visible: red boxes #9478
As discussed in #9475, numpy would likely profit from more visible deprecation notes than plain text in the docstring (see hstack's documentation, for example).
While actual deprecation is not desirable (for one, numpy 2.0 is a long way away), it was suggested to introduce big red boxes in the style of Python itself; see, e.g., here.
It's fairly straightforward to redefine deprecated to be more visible, or to define a new directive, either by modifying the numpydoc plugin or by making a little numpy-local plugin.
Activity
eric-wieser commentedon Jul 27, 2017
Does
.. deprecated:do the right thing here?nschloe commentedon Jul 27, 2017
The function
binary_reprhas.. deprecated:: 1.12.0set, but I see nothing of that in the generated docs.corrcoefactually shows something in the docs, but it isn't very visible either.njsmith commentedon Jul 27, 2017
It's fairly straightforward to redefine
deprecatedto be more visible, or to define a new directive, either by modifying the numpydoc plugin or by making a little numpy-local plugin.[-]make "deprecation" more visible: red boxes[/-][+]website: make "deprecation" more visible: red boxes[/+]seberg commentedon Nov 5, 2021
The deprecated directive now uses red boxes in the rendered docs.