mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-18 03:52:24 +03:00
Fix flake8
This commit is contained in:
parent
b845862a67
commit
d6fa500a0a
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user