fix(pre_commit): 🎨 auto format pre-commit hooks

This commit is contained in:
pre-commit-ci[bot]
2023-12-18 14:03:00 +00:00
parent 362e9f7b43
commit e2bb2be9b2
+2 -6
View File
@@ -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.