Skip to content

Commit d67f1a8

Browse files
author
Matt Sokoloff
committed
fix tests
1 parent 8273daf commit d67f1a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

labelbox/data/serialization/ndjson/classification.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ def from_common(cls, checklist: Checklist,
7171
],
7272
schema_id=schema_id)
7373

74+
def dict(self, *args, **kwargs):
75+
res = super().dict(*args, **kwargs)
76+
if 'answers' in res:
77+
res['answer'] = res.pop('answers')
78+
return res
79+
7480

7581
class NDRadioSubclass(NDFeature):
7682
answer: NDFeature

0 commit comments

Comments
 (0)