@@ -2039,7 +2039,7 @@ def execute(
20392039 raise GraphQLError (UNEXPECTED_MULTIPLE_PAYLOADS )
20402040
20412041 async def await_result () -> Any :
2042- awaited_result = await result # type: ignore
2042+ awaited_result = await result
20432043 if isinstance (awaited_result , ExecutionResult ):
20442044 return awaited_result
20452045 return ExecutionResult (
@@ -2388,7 +2388,7 @@ def subscribe(
23882388 return map_async_iterable (result , ensure_single_execution_result )
23892389
23902390 async def await_result () -> Union [AsyncIterator [ExecutionResult ], ExecutionResult ]:
2391- result_or_iterable = await result # type: ignore
2391+ result_or_iterable = await result
23922392 if isinstance (result_or_iterable , AsyncIterable ):
23932393 return map_async_iterable (
23942394 result_or_iterable , ensure_single_execution_result
@@ -2496,9 +2496,7 @@ async def await_result() -> Any:
24962496 awaited_result_or_stream = await result_or_stream # type: ignore
24972497 if isinstance (awaited_result_or_stream , ExecutionResult ):
24982498 return awaited_result_or_stream
2499- return context .map_source_to_response ( # type: ignore
2500- awaited_result_or_stream
2501- )
2499+ return context .map_source_to_response (awaited_result_or_stream )
25022500
25032501 return await_result ()
25042502
0 commit comments