| Total Complexity | 1 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from jsons._main_impl import dump |
||
| 2 | |||
| 3 | |||
| 4 | def default_iterable_serializer(obj: object, **kwargs) -> list: |
||
| 5 | """ |
||
| 6 | Serialize the given ``obj`` to a list of serialized objects. |
||
| 7 | :param obj: the iterable that is to be serialized. |
||
| 8 | :param kwargs: any keyword arguments that may be given to the serialization |
||
| 9 | process. |
||
| 10 | :return: a list of which all elements are serialized. |
||
| 11 | """ |
||
| 12 | return [dump(elem, **kwargs) for elem in obj] |
||
| 13 |