Skip to content

Commit d2c8a01

Browse files
author
Val Brodsky
committed
Replace LabelList with list in get_label_pairs
1 parent 95f896d commit d2c8a01

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

labelbox/data/metrics/group.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from typing_extensions import Literal
1313

1414
from ..annotation_types.feature import FeatureSchema
15-
from ..annotation_types import ObjectAnnotation, ClassificationAnnotation, Label, LabelList
15+
from ..annotation_types import ObjectAnnotation, ClassificationAnnotation, Label
1616

1717

1818
def get_identifying_key(
@@ -79,8 +79,8 @@ def all_have_key(features: List[FeatureSchema]) -> Tuple[bool, bool]:
7979
return all_schemas, all_names
8080

8181

82-
def get_label_pairs(labels_a: LabelList,
83-
labels_b: LabelList,
82+
def get_label_pairs(labels_a: list,
83+
labels_b: list,
8484
match_on="uid",
8585
filter_mismatch=False) -> Dict[str, Tuple[Label, Label]]:
8686
"""
@@ -91,8 +91,8 @@ def get_label_pairs(labels_a: LabelList,
9191
If this assumption fails, then the user has to determine their own matching strategy.
9292
9393
Args:
94-
labels_a (LabelList): A collection of labels to match with labels_b
95-
labels_b (LabelList): A collection of labels to match with labels_a
94+
labels_a (list): A collection of labels to match with labels_b
95+
labels_b (list): A collection of labels to match with labels_a
9696
match_on ('uid' or 'external_id'): The data row key to match labels by. Can either be uid or external id.
9797
filter_mismatch (bool): Whether or not to ignore mismatches
9898

0 commit comments

Comments
 (0)