Skip to content

Commit 44b1175

Browse files
committed
nit updates
1 parent c549b58 commit 44b1175

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

labelbox/data/metrics/group.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def all_have_key(features: List[FeatureSchema]) -> Tuple[bool, bool]:
6262
if isinstance(feature, ClassificationAnnotation):
6363
if isinstance(feature.value, Checklist):
6464
all_schemas, all_names = all_have_key(feature.value.answer)
65-
#this code should be able to be refactored better
6665
elif isinstance(feature.value, Text):
6766
if feature.name is None:
6867
all_names = False
@@ -184,7 +183,6 @@ def _create_feature_lookup(features: List[FeatureSchema],
184183

185184
grouped_features[getattr(answer,
186185
key)].append(new_annotation)
187-
#likely can be refactored
188186
elif isinstance(feature.value, Text):
189187
grouped_features[getattr(feature, key)].append(feature)
190188
else:

0 commit comments

Comments
 (0)