From dacce7aa5fd5f3c39196b0dd4226a8959dbc3d42 Mon Sep 17 00:00:00 2001 From: Mayank Agarwal Date: Tue, 15 Aug 2023 10:50:49 +0530 Subject: [PATCH] embellish comment --- supervision/classification/core.py | 7 +++++-- supervision/detection/core.py | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/supervision/classification/core.py b/supervision/classification/core.py index 27e68d90..e4535f98 100644 --- a/supervision/classification/core.py +++ b/supervision/classification/core.py @@ -43,8 +43,11 @@ class Classifications: @classmethod @deprecated( - "This method is deprecated and removed in 0.16.0 release. Use sv.Classifications.from_ultralytics() instead" - "as it is more generic and can be used for detections from any ultralytics.engine.results.Results Object " + """ + This method is deprecated and removed in 0.16.0 release. + Use sv.Classifications.from_ultralytics() instead as it is more generic and + can be used for detections from any ultralytics.engine.results.Results Object + """ ) def from_yolov8(cls, yolov8_results) -> Classifications: """ diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 66a6cc99..9aa7d21d 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -179,8 +179,11 @@ class Detections: @classmethod @deprecated( - "This method is deprecated and removed in 0.16.0 release. Use sv.Detections.from_ultralytics() instead" - "as it is more generic and can be used for detections from any ultralytics.engine.results.Results Object " + """ + This method is deprecated and removed in 0.16.0 release. + Use sv.Classifications.from_ultralytics() instead as it is more generic and + can be used for detections from any ultralytics.engine.results.Results Object + """ ) def from_yolov8(cls, yolov8_results) -> Detections: """