Skip to content

Commit

Permalink
Forgot product
Browse files Browse the repository at this point in the history
  • Loading branch information
george-zubrienko committed Oct 12, 2023
1 parent 7379d23 commit 6faa5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataclasses_json/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def handle_pep0673(pre_0673_hint: str) -> Union[Type, str]:
if len(type_args) == len(xs):
return list(_decode_item(type_arg, xs[type_ix]) for type_ix, type_arg in enumerate(type_args))
if len(type_args) == 1:
return list(_decode_item(type_arg, x) for type_arg, x in zip(type_args, xs))
return list(_decode_item(type_arg, x) for type_arg, x in product(type_args, xs))
else:
raise TypeError(f"Number of types specified in collection type {str(type_args)} is greater than one and does not match number of elements in the collection. Please review the type hint for this field.")
return list(_decode_item(type_args, x) for x in xs)
Expand Down

0 comments on commit 6faa5cf

Please sign in to comment.