diff --git a/graphene/types/argument.py b/graphene/types/argument.py index bb78339e..897b7ecd 100644 --- a/graphene/types/argument.py +++ b/graphene/types/argument.py @@ -94,7 +94,8 @@ def to_arguments(args, extra_args=None): if isinstance(arg, (InputField, Field)): raise ValueError( - f"Expected {default_name} to be Argument, but received {type(arg).__name__}. Try using Argument({arg.type})." + f"Expected {default_name} to be Argument, " + f"but received {type(arg).__name__}. Try using Argument({arg.type})." ) if not isinstance(arg, Argument): diff --git a/graphene/types/structures.py b/graphene/types/structures.py index b5a41103..a6763978 100644 --- a/graphene/types/structures.py +++ b/graphene/types/structures.py @@ -14,7 +14,8 @@ class Structure(UnmountedType): cls_name = type(self).__name__ of_type_name = type(of_type).__name__ raise Exception( - f"{cls_name} could not have a mounted {of_type_name}() as inner type. Try with {cls_name}({of_type_name})." + f"{cls_name} could not have a mounted {of_type_name}()" + f" as inner type. Try with {cls_name}({of_type_name})." ) self._of_type = of_type