From 66f4d2b96fdcdc40a3331e2faab8c63830526f0f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 31 Oct 2024 22:39:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- strax/sort_enforcement.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/strax/sort_enforcement.py b/strax/sort_enforcement.py index 2e0fa266..e793aa02 100644 --- a/strax/sort_enforcement.py +++ b/strax/sort_enforcement.py @@ -7,10 +7,12 @@ "Please use mergesort for deterministic sorting behavior." ) + # Define custom exception for sorting errors class SortingError(Exception): pass + @numba.njit(nogil=True, cache=True) def stable_sort(arr, kind="mergesort"): """Numba-optimized stable sort function using mergesort.