Skip to content

Commit

Permalink
[REF]: compute_whitespace add typing
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Nov 13, 2024
1 parent e24432e commit da2275c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camelot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da2275c

Please sign in to comment.