Repository navigation
Improve inserted docstring note of deprecated_func - #8095
Merged
Merged
Conversation
Member
Author
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as low quality.
This comment was marked as low quality.
This comment was marked as low quality.
This comment was marked as low quality.
stefanv
approved these changes
Apr 26, 2026
| ) | ||
|
|
||
| expected_doc = """\ | ||
| Dummy function used in `test_deprecate_func`. |
Member
Author
There was a problem hiding this comment.
I think I remember, that this is actually explicit Python behavior pre v3.13. That's why I only call cleandoc conditionally on the Python version in
scikit-image/tests/skimage2/_shared/test_utils.py
Lines 227 to 228 in e17249d
Member
|
Go ahead and merge when you're ready. |
Contributor
|
Reviews (5): Last reviewed commit: "Note TODO post Python 3.12" | Re-trigger Greptile |
matthew-brett
added a commit
that referenced
this pull request
May 12, 2026
* origin/main: (85 commits) Drop Python 3.11 Support (#8153) undo change to benchmark workflow address review Update pyodide CI test to match the pattern used by numpy (#8140) Update .github/workflows/_build_linux_for_python_x.yaml Update .github/workflows/_test_linux_for_python_x.yaml Suppress tifffile DeprecationWarning in test_plugin_deprecation_on_imread (#8138) fix yaml fix yaml Update .github/workflows/test-linux.yaml Update .github/workflows/_test_linux_for_python_x.yaml Update .github/workflows/test-linux.yaml Update .github/workflows/test-linux.yaml Move tests back to doc build Fill out .PHONY targets Apply suggestions from code review Remove unused imports (apply commit hooks) Improve inserted docstring note of `deprecated_func` (#8095) address review Update doc/source/index.rst ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Prompted by #8057 (comment). Instead of prepending an plain note,
deprecate_funcnow uses the deprecation directive and inserts it after the short summary on the first line.Not time tracking this, since it just bothered me.
Checklist
./doc/examplesfor new featuresRelease note
For maintainers and optionally contributors, please refer to the instructions on how to document this PR for the release notes.