Skip to content

Commit 56583b5

Browse files
committed
rename normalized to feature_schema
1 parent d4faa48 commit 56583b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

labelbox/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -971,11 +971,11 @@ def update_feature_schema_title(self, feature_schema_id: str, title: str):
971971
"Failed to update the feature schema, message: " +
972972
str(response.json()['message']))
973973

974-
def upsert_feature_schema(self, normalized: Dict):
974+
def upsert_feature_schema(self, feature_schema: Dict):
975975
"""
976976
Upserts a feature schema
977977
Args:
978-
normalized: The feature schema to upsert
978+
feature_schema: Dict representing the feature schema to upsert
979979
Returns:
980980
The upserted feature schema
981981
Example:
@@ -987,14 +987,14 @@ def upsert_feature_schema(self, normalized: Dict):
987987
>>> client.upsert_feature_schema(tool.asdict())
988988
"""
989989

990-
feature_schema_id = normalized.get(
990+
feature_schema_id = feature_schema.get(
991991
"featureSchemaId") or "new_feature_schema_id"
992992
endpoint = self.rest_endpoint + "/feature-schemas/" + urllib.parse.quote(
993993
feature_schema_id)
994994
response = requests.put(
995995
endpoint,
996996
headers=self.headers,
997-
json={"normalized": json.dumps(normalized)},
997+
json={"normalized": json.dumps(feature_schema)},
998998
)
999999

10001000
if response.status_code == requests.codes.ok:

0 commit comments

Comments
 (0)