Skip to content

Commit 50fa1cb

Browse files
committed
Replaced 'remove' verb with 'deleted'
1 parent 6c470dd commit 50fa1cb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

labelbox/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,15 +1598,15 @@ def get_model_slice(self, slice_id) -> ModelSlice:
15981598
res = self.execute(query_str, {"id": slice_id})
15991599
return Entity.ModelSlice(self, res["getSavedQuery"])
16001600

1601-
class RemoveFeatureFromOntologyResult:
1601+
class DeleteFeatureFromOntologyResult:
16021602
archived: bool
16031603
deleted: bool
16041604

1605-
def remove_feature_schema_from_ontology(
1605+
def delete_feature_schema_from_ontology(
16061606
self, ontology_id: str,
1607-
feature_schema_id: str) -> RemoveFeatureFromOntologyResult:
1607+
feature_schema_id: str) -> DeleteFeatureFromOntologyResult:
16081608
"""
1609-
Removes a feature schema from an ontology.
1609+
Deletes or archives a feature schema from an ontology.
16101610
If the feature schema is a root level node with associated labels, it will be archived.
16111611
If the feature schema is a nested node in the ontology and does not have associated labels, it will be deleted.
16121612
If the feature schema is a nested node in the ontology and has associated labels, it will not be deleted.
@@ -1616,7 +1616,7 @@ def remove_feature_schema_from_ontology(
16161616
feature_schema_id (str): The ID of the feature schema.
16171617
16181618
Returns:
1619-
RemoveFeatureFromOntologyResult: The result of the feature schema removal.
1619+
DeleteFeatureFromOntologyResult: The result of the feature schema removal.
16201620
16211621
Example:
16221622
>>> client.remove_feature_schema_from_ontology(<ontology_id>, <feature_schema_id>)

0 commit comments

Comments
 (0)