Skip to content

Commit 452f648

Browse files
committed
Reformatting by pre-commit hook
1 parent 2ab942d commit 452f648

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

graphql/execution/executor.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ def complete_value(
532532
),
533533
lambda error: Promise.rejected(
534534
GraphQLLocatedError(field_asts, original_error=error, path=path)
535-
if isinstance(error, GraphQLError) else error
535+
if isinstance(error, GraphQLError)
536+
else error
536537
),
537538
)
538539

graphql/execution/tests/test_executor_asyncio.py

+1-4
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)