We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a99859e commit 595d6fbCopy full SHA for 595d6fb
nucleus/annotation.py
@@ -307,8 +307,8 @@ def __post_init__(self):
307
@classmethod
308
def from_json(cls, payload: dict):
309
return cls(
310
- label=payload.get(LABEL_KEY, 0),
311
- taxonomy_name=payload.get(TAXONOMY_NAME_KEY, None),
+ label=payload[LABEL_KEY],
+ taxonomy_name=payload[TAXONOMY_NAME_KEY],
312
reference_id=payload[REFERENCE_ID_KEY],
313
metadata=payload.get(METADATA_KEY, {}),
314
)
tests/test_annotation.py
@@ -64,7 +64,6 @@ def dataset(CLIENT):
64
"category",
65
[f"[Pytest] Category Label ${i}" for i in range((len(TEST_IMG_URLS)))],
66
67
- assert ERROR_PAYLOAD not in response.json()
68
yield ds
69
70
response = CLIENT.delete_dataset(ds.id)
0 commit comments