Repository navigation
Releasing 0.27.0.post0 [rebase & merge] - #2118
Merged
Merged
Conversation
…irecting to `supervision.key_points`.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive deprecation support for version 0.27.0 by migrating from a custom deprecated decorator to the external pyDeprecate library. The changes introduce deprecation warnings for multiple functions, classes, and parameters to prepare for future API cleanup.
Changes:
- Replaced custom
deprecateddecorator withpyDeprecate>=0.4.0library - Added deprecation wrappers for validator functions with underscore naming inconsistencies (
keypointvskey_point) - Deprecated the
supervision.keypointmodule in favor ofsupervision.key_points - Added parameter deprecation handling in
InferenceSlicerforoverlap_ratio_whandoverlap_filter_strategy - Updated existing deprecations for
overlay_image,MeanAveragePrecision,LMMenum, and related functions to use new decorator format
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 16 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Adds pyDeprecate>=0.4.0 as a new dependency |
| supervision/utils/internal.py | Removes custom deprecated decorator implementation |
| supervision/validators/init.py | Adds deprecation wrappers for validate_keypoint_confidence and validate_keypoints_fields |
| supervision/utils/conversion.py | Adds deprecation wrappers for annotation-related decorator functions |
| supervision/utils/image.py | Updates overlay_image deprecation and adds create_tiles deprecation stub |
| supervision/detection/utils/boxes.py | Adds parameter renaming deprecation for denormalize_boxes |
| supervision/metrics/detection.py | Updates MeanAveragePrecision deprecation to use new decorator |
| supervision/detection/vlm.py | Updates LMM enum deprecation to use new decorator |
| supervision/detection/core.py | Updates from_lmm method deprecation to use new decorator |
| supervision/detection/tools/inference_slicer.py | Adds manual parameter deprecation handling for overlap_ratio_wh and overlap_filter_strategy |
| supervision/keypoint/init.py | Creates new file with deprecation warning for module |
| supervision/keypoint/core.py | Creates new file with deprecation warning and forward import |
| supervision/keypoint/annotators.py | Creates new file with deprecation warning and forward imports |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
Author
|
wondering why the py3.9 tests are failing... Considering to skip this one test for specific py3.9 |
SkalskiP
reviewed
Feb 5, 2026
…ersion utilities
…multiple modules
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.
No description provided.