Skip to content

Commit 37b9434

Browse files
committed
Reformatting by pre-commit hook
1 parent 14a4fe7 commit 37b9434

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

graphql/execution/executor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,8 @@ def complete_value(
529529
),
530530
lambda error: Promise.rejected(
531531
GraphQLLocatedError(field_asts, original_error=error, path=path)
532-
if isinstance(error, GraphQLError) else error
532+
if isinstance(error, GraphQLError)
533+
else error
533534
),
534535
)
535536

graphql/execution/tests/test_executor_asyncio.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@ def resolver(context, *_):
129129
raise Error("UH OH!")
130130

131131
Type = GraphQLObjectType(
132-
"Type",
133-
{
134-
"a": GraphQLField(GraphQLString, resolver=resolver),
135-
},
132+
"Type", {"a": GraphQLField(GraphQLString, resolver=resolver)}
136133
)
137134

138135
with pytest.raises(Error):

0 commit comments

Comments
 (0)