Skip to content

Commit a11c785

Browse files
author
Matt Sokoloff
committed
cleaner
1 parent 61ea47a commit a11c785

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

labelbox/schema/bulk_import_request.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,14 +633,12 @@ def validate_subclasses(cls, value, field):
633633
#This is caused by the fact that we require these ids for top level classifications but not for subclasses
634634
results = []
635635
for row in value:
636-
copied_row = row.copy()
637-
copied_row.update({
638-
'dataRow': {
636+
results.append({
637+
**row, 'dataRow': {
639638
'id': 'child'.center(25, '_')
640639
},
641640
'uuid': str(uuid4())
642641
})
643-
results.append(copied_row)
644642
return results
645643

646644

0 commit comments

Comments
 (0)