From 436a48324ec2f96b9216a6e418328a0d0b841e26 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:11:41 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- maths/inter_quartile_range.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maths/inter_quartile_range.py b/maths/inter_quartile_range.py index 3ef4a2694..8dd33879d 100644 --- a/maths/inter_quartile_range.py +++ b/maths/inter_quartile_range.py @@ -47,7 +47,7 @@ def inter_quartile_range(x: np.array) -> float: if length == 0: raise ValueError 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