Skip to content

Commit 0903e72

Browse files
committed
add proper return type
1 parent b3db0aa commit 0903e72

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

labelbox/client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from labelbox.schema.labeling_frontend import LabelingFrontend
3030
from labelbox.schema.model import Model
3131
from labelbox.schema.model_run import ModelRun
32-
from labelbox.schema.ontology import Ontology, Tool, Classification
32+
from labelbox.schema.ontology import Ontology, Tool, Classification, FeatureSchema
3333
from labelbox.schema.organization import Organization
3434
from labelbox.schema.user import User
3535
from labelbox.schema.project import Project
@@ -945,7 +945,7 @@ def delete_unused_ontology(self, ontology_id: str) -> None:
945945
str(response.json()['message']))
946946

947947
def update_feature_schema_title(self, feature_schema_id: str,
948-
title: str) -> Entity.FeatureSchema:
948+
title: str) -> FeatureSchema:
949949
"""
950950
Updates a title of a feature schema
951951
Args:
@@ -972,8 +972,7 @@ def update_feature_schema_title(self, feature_schema_id: str,
972972
"Failed to update the feature schema, message: " +
973973
str(response.json()['message']))
974974

975-
def upsert_feature_schema(self,
976-
feature_schema: Dict) -> Entity.FeatureSchema:
975+
def upsert_feature_schema(self, feature_schema: Dict) -> FeatureSchema:
977976
"""
978977
Upserts a feature schema
979978
Args:

0 commit comments

Comments
 (0)