@@ -2039,7 +2039,7 @@ def execute(
2039
2039
raise GraphQLError (UNEXPECTED_MULTIPLE_PAYLOADS )
2040
2040
2041
2041
async def await_result () -> Any :
2042
- awaited_result = await result # type: ignore
2042
+ awaited_result = await result
2043
2043
if isinstance (awaited_result , ExecutionResult ):
2044
2044
return awaited_result
2045
2045
return ExecutionResult (
@@ -2388,7 +2388,7 @@ def subscribe(
2388
2388
return map_async_iterable (result , ensure_single_execution_result )
2389
2389
2390
2390
async def await_result () -> Union [AsyncIterator [ExecutionResult ], ExecutionResult ]:
2391
- result_or_iterable = await result # type: ignore
2391
+ result_or_iterable = await result
2392
2392
if isinstance (result_or_iterable , AsyncIterable ):
2393
2393
return map_async_iterable (
2394
2394
result_or_iterable , ensure_single_execution_result
@@ -2496,9 +2496,7 @@ async def await_result() -> Any:
2496
2496
awaited_result_or_stream = await result_or_stream # type: ignore
2497
2497
if isinstance (awaited_result_or_stream , ExecutionResult ):
2498
2498
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 )
2502
2500
2503
2501
return await_result ()
2504
2502
0 commit comments