From 87c609fb46491cae89710a76c27175f903376cf2 Mon Sep 17 00:00:00 2001 From: George Zubrienko Date: Thu, 12 Oct 2023 22:30:02 +0200 Subject: [PATCH] Flake --- dataclasses_json/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dataclasses_json/core.py b/dataclasses_json/core.py index 3c0c9fe3..9bb081bc 100644 --- a/dataclasses_json/core.py +++ b/dataclasses_json/core.py @@ -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)