Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Mar 15, 2020
1 parent b845862 commit d6fa500
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion graphene/types/argument.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 2 additions & 1 deletion graphene/types/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def __init__(self, of_type, *args, **kwargs):
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

Expand Down

0 comments on commit d6fa500

Please sign in to comment.