Skip to content

Commit 73db2b4

Browse files
committed
fix typing
1 parent 6f437b1 commit 73db2b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytorch_ie/metrics/confusion_matrix.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def calculate_counts(
6868
base2pred[base_ann].append(ann)
6969

7070
# (gold_label, pred_label) -> count
71-
counts = defaultdict(int)
71+
counts: Dict[Tuple[str, str], int] = defaultdict(int)
7272
for base_ann in set(base2gold) | set(base2pred):
7373
gold_labels = [getattr(ann, self.label_field) for ann in base2gold[base_ann]]
7474
pred_labels = [getattr(ann, self.label_field) for ann in base2pred[base_ann]]

0 commit comments

Comments
 (0)