From d6fa500a0a4f2c1df4967ee78bee312c28064338 Mon Sep 17 00:00:00 2001 From: Syrus Date: Sat, 14 Mar 2020 17:26:10 -0700 Subject: [PATCH] Fix flake8 --- graphene/types/argument.py | 3 ++- graphene/types/structures.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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