From c663acc4ed8e7d2a9e4389a3e8f790d60a070a0c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 18 Jun 2026 16:54:00 +0200 Subject: use format strings --- algorithms/input_kind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'algorithms/input_kind.py') diff --git a/algorithms/input_kind.py b/algorithms/input_kind.py index b91d298..68a93d8 100644 --- a/algorithms/input_kind.py +++ b/algorithms/input_kind.py @@ -30,4 +30,4 @@ def gen_input_for_sorting(n, case=InputKind.AVERAGE): return _gen_input_from(sample(range(n), n)) if case is InputKind.WORST: return _gen_input_from(range(n - 1, -1, -1)) - raise NotImplementedError("invalid input kind: " + str(case)) + raise NotImplementedError(f"invalid input kind: {case}") -- cgit v1.3