Rewrite long strings using \ instead of + (concatenation).

This commit is contained in:
Davide Casale
2023-03-08 16:30:52 +01:00
parent 88e6c79532
commit 894391256d
7 changed files with 44 additions and 41 deletions

View File

@@ -42,7 +42,7 @@ class _Serializer(Generic[T]):
labels = list(filter(lambda label: label not in (skip or []), self.__labels))
if len(labels) > len(args):
raise LabelerSerializerException(f"{self.name} -> <labels> and <*args> " +
raise LabelerSerializerException(f"{self.name} -> <labels> and <*args> " \
"arguments should contain the same amount of elements.")
for index, label in enumerate(labels):