Update deprecation annotations to extend `remove_in` versions across multiple modules
This commit is contained in:
parent
ee1400a40c
commit
bc521bc2d0
|
|
@ -98,7 +98,7 @@ def pad_boxes(xyxy: np.ndarray, px: int, py: int | None = None) -> np.ndarray:
|
|||
@deprecated(
|
||||
target=None,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.30.0",
|
||||
remove_in="0.31.0",
|
||||
args_mapping={"normalized_xyxy": "xyxy"},
|
||||
)
|
||||
def denormalize_boxes(
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ warnings.warn(
|
|||
stacklevel=2,
|
||||
)
|
||||
|
||||
from supervision.key_points.annotators import ( # noqa: F401E402
|
||||
from supervision.key_points.annotators import ( # noqa: F401, E402
|
||||
BaseKeyPointAnnotator,
|
||||
EdgeAnnotator,
|
||||
VertexAnnotator,
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ warnings.warn(
|
|||
stacklevel=2,
|
||||
)
|
||||
|
||||
from supervision.key_points.core import KeyPoints # noqa: F401E402
|
||||
from supervision.key_points.core import KeyPoints # noqa: F401, E402
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ def ensure_cv2_image_for_class_method(annotate_func):
|
|||
@deprecated(
|
||||
target=ensure_cv2_image_for_class_method,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.30.0",
|
||||
remove_in="0.31.0",
|
||||
)
|
||||
def ensure_cv2_image_for_annotation(annotate_func):
|
||||
pass
|
||||
|
|
@ -92,7 +92,7 @@ def ensure_pil_image_for_class_method(annotate_func):
|
|||
@deprecated(
|
||||
target=ensure_pil_image_for_class_method,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.30.0",
|
||||
remove_in="0.31.0",
|
||||
)
|
||||
def ensure_pil_image_for_annotation(annotate_func):
|
||||
pass
|
||||
|
|
@ -101,7 +101,7 @@ def ensure_pil_image_for_annotation(annotate_func):
|
|||
@deprecated(
|
||||
target=ensure_cv2_image_for_standalone_function,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.30.0",
|
||||
remove_in="0.31.0",
|
||||
)
|
||||
def ensure_cv2_image_for_processing(image_processing_fun):
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ def letterbox_image(
|
|||
@deprecated(
|
||||
target=None,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.32.0",
|
||||
remove_in="0.31.0",
|
||||
)
|
||||
def overlay_image(
|
||||
image: npt.NDArray[np.uint8],
|
||||
|
|
@ -635,7 +635,7 @@ class ImageSink:
|
|||
@deprecated(
|
||||
target=None,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.27.0",
|
||||
remove_in="0.31.0",
|
||||
)
|
||||
def create_tiles(
|
||||
images: list[ImageType],
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ def validate_key_point_confidence(confidence: Any, n: int, m: int) -> None:
|
|||
@deprecated(
|
||||
target=validate_key_point_confidence,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.30.0",
|
||||
remove_in="0.31.0",
|
||||
)
|
||||
def validate_keypoint_confidence(confidence: Any, n: int, m: int) -> None:
|
||||
pass
|
||||
|
|
@ -153,7 +153,7 @@ def validate_key_points_fields(
|
|||
@deprecated(
|
||||
target=validate_key_points_fields,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.30.0",
|
||||
remove_in="0.31.0",
|
||||
)
|
||||
def validate_keypoints_fields(
|
||||
xy: Any, class_id: Any, confidence: Any, data: dict[str, Any]
|
||||
|
|
|
|||
Loading…
Reference in New Issue