We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abaa127 commit 0dc7b09Copy full SHA for 0dc7b09
src/graphql/execution/execute.py
@@ -334,7 +334,7 @@ def build_response(
334
335
def execute_operation(
336
self, operation: OperationDefinitionNode
337
- ) -> Optional[AwaitableOrValue[Any]]:
+ ) -> AwaitableOrValue[Any]:
338
"""Execute an operation.
339
340
Implements the "Executing operations" section of the spec.
@@ -1033,7 +1033,7 @@ def execute(
1033
# noinspection PyShadowingNames
1034
async def await_result() -> Any:
1035
try:
1036
- return build_response(await result, errors) # type: ignore
+ return build_response(await result, errors)
1037
except GraphQLError as error:
1038
errors.append(error)
1039
return build_response(None, errors)
0 commit comments