From 14a3fb419d395a254e3f67e2f1bda7d1dbe480c5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 18:56:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- maths/interquartile_range.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maths/interquartile_range.py b/maths/interquartile_range.py index 6f8e0a6ea..03af90849 100644 --- a/maths/interquartile_range.py +++ b/maths/interquartile_range.py @@ -48,7 +48,7 @@ def interquartile_range(x: np.array) -> float: if length == 0: raise ValueError("The list is empty. Provide a non-empty list.") x.sort() - q1 = find_median(x[0: length // 2]) + q1 = find_median(x[0 : length // 2]) half_length = (length // 2) + 1 if length % 2 else length // 2 q3 = find_median(x[half_length:length]) return q3 - q1