From f7d56fdb7957acaa9640ef55dd2f62e3c7b452ef Mon Sep 17 00:00:00 2001 From: sebastianMindee Date: Fri, 20 Sep 2024 11:26:27 +0200 Subject: [PATCH] fix lint --- tests/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index 1630adda..28724931 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -52,7 +52,11 @@ def levenshtein_distance(reference_str: str, target_str: str) -> int: for j in range(target_len): deletion_cost = previous_row[j + 1] + 1 insertion_cost = current_row[j] + 1 - substitution_cost = previous_row[j] if reference_str[i] == target_str[j] else previous_row[j] + 1 + substitution_cost = ( + previous_row[j] + if reference_str[i] == target_str[j] + else previous_row[j] + 1 + ) current_row[j + 1] = min(deletion_cost, insertion_cost, substitution_cost)