Fix flake8

This commit is contained in:
Syrus 2020-03-14 17:26:10 -07:00
parent b845862a67
commit d6fa500a0a
2 changed files with 4 additions and 2 deletions

View File

@ -94,7 +94,8 @@ def to_arguments(args, extra_args=None):
if isinstance(arg, (InputField, Field)): if isinstance(arg, (InputField, Field)):
raise ValueError( 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): if not isinstance(arg, Argument):

View File

@ -14,7 +14,8 @@ class Structure(UnmountedType):
cls_name = type(self).__name__ cls_name = type(self).__name__
of_type_name = type(of_type).__name__ of_type_name = type(of_type).__name__
raise Exception( 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 self._of_type = of_type