Skip to content

Commit c728290

Browse files
committed
add function return types
1 parent 56583b5 commit c728290

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

labelbox/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ def create_ontology_from_feature_schemas(self,
902902
normalized = {'tools': tools, 'classifications': classifications}
903903
return self.create_ontology(name, normalized, media_type)
904904

905-
def delete_unused_feature_schema(self, feature_schema_id: str):
905+
def delete_unused_feature_schema(self, feature_schema_id: str) -> None:
906906
"""
907907
Deletes a feature schema if it is not used by any ontologies or annotations
908908
Args:
@@ -923,7 +923,7 @@ def delete_unused_feature_schema(self, feature_schema_id: str):
923923
"Failed to delete the feature schema, message: " +
924924
str(response.json()['message']))
925925

926-
def delete_unused_ontology(self, ontology_id: str):
926+
def delete_unused_ontology(self, ontology_id: str) -> None:
927927
"""
928928
Deletes an ontology if it is not used by any annotations
929929
Args:
@@ -1005,7 +1005,8 @@ def upsert_feature_schema(self, feature_schema: Dict):
10051005
str(response.json()['message']))
10061006

10071007
def insert_feature_schema_into_ontology(self, feature_schema_id: str,
1008-
ontology_id: str, position: int):
1008+
ontology_id: str,
1009+
position: int) -> None:
10091010
"""
10101011
Inserts a feature schema into an ontology. If the feature schema is already in the ontology,
10111012
it will be moved to the new position.

0 commit comments

Comments
 (0)