Skip to content

Commit 345f016

Browse files
committed
Now returning bool
1 parent 478c9fa commit 345f016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ def is_feature_schema_archived(self, ontology_id: str,
14261426
feature_schema_node = list(
14271427
filter(is_feature, feature_schema_node_list))
14281428
if len(feature_schema_node) > 0:
1429-
return feature_schema_node[0]['archived']
1429+
return bool(feature_schema_node[0]['archived'])
14301430
else:
14311431
raise labelbox.exceptions.LabelboxError(
14321432
"The specified feature schema was not in the ontology.")

0 commit comments

Comments
 (0)