def list_asdict(in_list: Iterable[Any]) -> List[Any]:
"""asdict'ify a list of objects.
Useful when converting a list of objects to json.
"""
return [asdict(obj) for obj in in_list]
# noinspection PyUnusedLocal
文章目录