Skip to content

Commit 2e51ccb

Browse files
author
Val Brodsky
committed
Fix lint
1 parent 2fba104 commit 2e51ccb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

libs/labelbox/src/labelbox/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)