d: dict
{
key: dacite.from_dict(data_class=MyDataClass, data=value)
for (key, value)
in d.items()
}
l: list
[
dacite.from_dict(data_class=MyDataClass, data=elem)
for elem
in l
]
Hi @majiang - no, we don't have such shortcuts and I don't think we should have such things in this library. Your solution looks good and it's very "pythonic".
Is there shorthands for these?: