From b4bfb939ab6d5b176cb8298bd83a14136874af2f Mon Sep 17 00:00:00 2001 From: bosd Date: Wed, 13 Nov 2024 21:28:47 +0100 Subject: [PATCH] [REF]: compute_whitespace add typing --- camelot/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camelot/utils.py b/camelot/utils.py index 18b2abdc..dabc769d 100644 --- a/camelot/utils.py +++ b/camelot/utils.py @@ -1312,7 +1312,7 @@ def compute_accuracy(error_weights): return score -def compute_whitespace(d): +def compute_whitespace(d: list[list[str]]) -> float: """Calculates the percentage of empty strings in a two-dimensional list. Parameters