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
I can't work out how to satisfy GL09 when including a deprecation notice.
Demonstration
For example:
file "sample_code.py"
def my_func_wrong():
"""Compute my function.
What it does in more detail.
.. deprecated:: v0.1
This function is listed for future removal.
"""
pass
def my_func_right():
"""Compute my function.
.. deprecated:: v0.1
This function is listed for future removal.
What it does in more detail.
"""
pass
I think the form in "my_func_right" ought to pass OK.
Workaround
For now, in the Iris project, we are putting all our "deprecated" sections within a "Notes" section,
and have been since we since we adopted numpydoc-validation in pre-commit.
For example here
But this feels like a kluge.
The text was updated successfully, but these errors were encountered:
stefanv
added a commit
to stefanv/numpydoc
that referenced
this issue
Jul 17, 2024
I can't work out how to satisfy GL09 when including a deprecation notice.
Demonstration
For example:
file "sample_code.py"
produces ...
Expected
I think the form in "my_func_right" ought to pass OK.
Workaround
For now, in the Iris project, we are putting all our "deprecated" sections within a "Notes" section,
and have been since we since we adopted numpydoc-validation in pre-commit.
For example here
But this feels like a kluge.
The text was updated successfully, but these errors were encountered: