Skip to content

Commit ba07612

Browse files
committed
Unstructure heterogenous tuples to list by default
1 parent 341e50f commit ba07612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cattr/converters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ def gen_unstructure_iterable(self, cl: Any, unstructure_to=None):
760760

761761
def gen_unstructure_hetero_tuple(self, cl: Any, unstructure_to=None):
762762
unstructure_to = self._unstruct_collection_overrides.get(
763-
get_origin(cl) or cl, unstructure_to or tuple
763+
get_origin(cl) or cl, unstructure_to or list
764764
)
765765
h = make_hetero_tuple_unstructure_fn(cl, self, unstructure_to=unstructure_to)
766766
self._unstructure_func.register_cls_list([(cl, h)], direct=True)

0 commit comments

Comments
 (0)