File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
libs/labelbox/src/labelbox Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -715,6 +715,7 @@ def create_project(self, **kwargs) -> Project:
715715 logger .warning (
716716 "Creating a project without specifying media_type"
717717 " through this method will soon no longer be supported." )
718+ media_type_value = None
718719
719720 ontology_kind = kwargs .pop ("ontology_kind" , None )
720721 if ontology_kind and OntologyKind .is_supported (ontology_kind ):
@@ -1262,6 +1263,7 @@ def create_ontology(self,
12621263 NOTE caller of this method is expected to set media_type to Conversational if ontology_kind is ModelEvaluation
12631264 """
12641265
1266+ media_type_value = None
12651267 if media_type :
12661268 if MediaType .is_supported (media_type ):
12671269 media_type_value = media_type .value
Original file line number Diff line number Diff line change @@ -48,9 +48,8 @@ def to_editor_task_type(ontology_kind: OntologyKind,
4848 return editor_task_type
4949
5050 @staticmethod
51- def map_to_editor_task_type (
52- onotology_kind : OntologyKind ,
53- media_type : MediaType ) -> Optional [EditorTaskType ]:
51+ def map_to_editor_task_type (onotology_kind : OntologyKind ,
52+ media_type : MediaType ) -> EditorTaskType :
5453 if onotology_kind == OntologyKind .ModelEvaluation and media_type == MediaType .Conversational :
5554 return EditorTaskType .ModelChatEvaluation
5655 else :
You can’t perform that action at this time.
0 commit comments