Skip to content

Commit 4d8fefe

Browse files
committed
AL-3578: Format again lol
1 parent 29942a2 commit 4d8fefe

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

labelbox/schema/confidence_presence_checker.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,14 @@ def _check_annotation(cls, annotation: Union[ClassificationAnnotation,
3535
ScalarMetric,
3636
ConfusionMatrixMetric]):
3737

38-
confidence: Union[float, NoneType] = getattr(annotation, 'confidence')
38+
confidence: Union[float, None] = getattr(annotation, 'confidence')
3939
if confidence is not None:
4040
return True
4141

42-
classifications: Union[List[ClassificationAnnotation], NoneType] = getattr(
43-
annotation, 'classifications')
42+
classifications: Union[List[ClassificationAnnotation],
43+
None] = getattr(annotation, 'classifications')
4444
if classifications:
45-
return any([
46-
cls._check_classification(x) for x in classifications
47-
])
45+
return any([cls._check_classification(x) for x in classifications])
4846
return False
4947

5048
@classmethod

0 commit comments

Comments
 (0)