From 29ba24f89a76def71d178da22db54be123279437 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 28 Mar 2024 12:39:11 +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/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/supervision/detection/utils.py b/supervision/detection/utils.py index 25a2a37c..b3928fdb 100644 --- a/supervision/detection/utils.py +++ b/supervision/detection/utils.py @@ -849,7 +849,9 @@ def get_data_item( subset_data[key] = [value[i] for i in index] elif isinstance(index, np.ndarray): if index.dtype == bool: - subset_data[key] = [value[i] for i, index_value in enumerate(index) if index_value] + subset_data[key] = [ + value[i] for i, index_value in enumerate(index) if index_value + ] else: subset_data[key] = [value[i] for i in index] elif isinstance(index, int):