Skip to content

Commit 7749f10

Browse files
committed
Ran yapf formatter
1 parent 5dda8ef commit 7749f10

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

labelbox/client.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,13 +1598,13 @@ 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-
16021601
class RemoveFeatureFromOntologyResult:
16031602
archived: bool
16041603
deleted: bool
16051604

1606-
def remove_feature_schema_from_ontology(self, ontology_id: str,
1607-
feature_schema_id: str) -> RemoveFeatureFromOntologyResult:
1605+
def remove_feature_schema_from_ontology(
1606+
self, ontology_id: str,
1607+
feature_schema_id: str) -> RemoveFeatureFromOntologyResult:
16081608
"""
16091609
Removes a feature schema from an ontology.
16101610
If the feature schema is a root level node with associated labels, it will be archived.
@@ -1621,7 +1621,9 @@ def remove_feature_schema_from_ontology(self, ontology_id: str,
16211621
Example:
16221622
>>> client.remove_feature_schema_from_ontology(<ontology_id>, <feature_schema_id>)
16231623
"""
1624-
ontology_endpoint = self.rest_endpoint + "/ontologies/" + urllib.parse.quote(ontology_id) + "/feature-schemas/" + urllib.parse.quote(feature_schema_id)
1624+
ontology_endpoint = self.rest_endpoint + "/ontologies/" + urllib.parse.quote(
1625+
ontology_id) + "/feature-schemas/" + urllib.parse.quote(
1626+
feature_schema_id)
16251627
response = requests.delete(
16261628
ontology_endpoint,
16271629
headers=self.headers,

0 commit comments

Comments
 (0)