Skip to content

Commit

Permalink
Flake
Browse files Browse the repository at this point in the history
  • Loading branch information
george-zubrienko committed Oct 12, 2023
1 parent 6faa5cf commit 87c609f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dataclasses_json/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ def handle_pep0673(pre_0673_hint: str) -> Union[Type, str]:
if len(type_args) == 1:
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.")
raise TypeError(f"Number of types specified in collection type {str(type_args)} "
f"is greater than one and does not match number of elements in the collection. "
f"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 87c609f

Please sign in to comment.