Open NickRothbacher opened 2 years ago
Describe the bug Datasets.create type casts labels as list but dataset.serialize_labels requires a dict, not a list.
To Reproduce Steps to reproduce the behavior:
project = dl.projects.get(...)
dataset = project.datasets.create(..., labels = {'1':(0,0,0)})
AttributeError: 'list' object has no attribute 'items'
Expected behavior projects.datasets.create should accept a dict of label:color pairs, creating a dataset with the specified labels.
Desktop:
Describe the bug Datasets.create type casts labels as list but dataset.serialize_labels requires a dict, not a list.
To Reproduce Steps to reproduce the behavior:
project = dl.projects.get(...)
dataset = project.datasets.create(..., labels = {'1':(0,0,0)})
AttributeError: 'list' object has no attribute 'items'
Expected behavior projects.datasets.create should accept a dict of label:color pairs, creating a dataset with the specified labels.
Desktop: