From c46ff15143e86fb80bd97d6aef9348e41fd28acf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 6 Dec 2023 12:52:06 +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/annotators/core.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/supervision/annotators/core.py b/supervision/annotators/core.py index be495c88..0defdf74 100644 --- a/supervision/annotators/core.py +++ b/supervision/annotators/core.py @@ -1323,11 +1323,14 @@ class TriangleAnnotator(BaseAnnotator): else custom_color_lookup, ) tip_x, tip_y = int(xy[detection_idx, 0]), int(xy[detection_idx, 1]) - vertices = np.array([ - [tip_x - self.base // 2, tip_y - self.height], - [tip_x + self.base // 2, tip_y - self.height], - [tip_x, tip_y] - ], np.int32) + vertices = np.array( + [ + [tip_x - self.base // 2, tip_y - self.height], + [tip_x + self.base // 2, tip_y - self.height], + [tip_x, tip_y], + ], + np.int32, + ) cv2.fillPoly(scene, [vertices], color.as_bgr())