Skip to content

Commit fcaa75a

Browse files
committed
test_fixes
1 parent 61411bc commit fcaa75a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libs/labelbox/src/labelbox/schema/ontology.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ class OntologyBuilder:
569569
def from_dict(cls, dictionary: Dict[str, Any]) -> Dict[str, Any]:
570570
classifications = []
571571
for c in dictionary["classifications"]:
572-
if "type" in c and c["type"] in PromptResponseClassification.Type:
572+
if "type" in c and c["type"] in PromptResponseClassification.Type._value2member_map_.keys():
573573
classifications.append(PromptResponseClassification.from_dict(c))
574574
else:
575575
classifications.append(Classification.from_dict(c))

libs/labelbox/src/labelbox/schema/ontology_kind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_ontology_kind_validation_error(cls, ontology_kind):
2424

2525
@staticmethod
2626
def evaluate_ontology_kind_with_media_type(ontology_kind,
27-
media_type: Union[MediaType, None]) -> MediaType:
27+
media_type: Union[MediaType, None]) -> Union[MediaType, None]:
2828

2929
if ontology_kind and ontology_kind is OntologyKind.ModelEvaluation:
3030
if media_type is None:

0 commit comments

Comments
 (0)