From e2bb2be9b2401c3c3d0790b2d9c3a2ce0b71b6a8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 14:02:59 +0000 Subject: [PATCH] =?UTF-8?q?fix(pre=5Fcommit):=20=F0=9F=8E=A8=20auto=20form?= =?UTF-8?q?at=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervision/detection/core.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 1a3ff2c7..bcfd035c 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -476,9 +476,7 @@ class Detections: ``` """ with suppress(AttributeError): - roboflow_result = roboflow_result.dict( - exclude_none=True, by_alias=True - ) + roboflow_result = roboflow_result.dict(exclude_none=True, by_alias=True) xyxy, confidence, class_id, masks, trackers = process_roboflow_result( roboflow_result=roboflow_result ) @@ -496,9 +494,7 @@ class Detections: @classmethod @deprecated("Use `from_inference` instead.") - def from_roboflow( - cls, roboflow_result: Union[dict, Any] - ) -> Detections: + def from_roboflow(cls, roboflow_result: Union[dict, Any]) -> Detections: """ Create a Detections object from the [Roboflow](https://roboflow.com/) API inference result or the [Inference](https://inference.roboflow.com/) package results.