Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d82cc32

Browse files
committed
polish: narrow map_source_to_response return type
Replicates graphql/graphql-js@baf11a5
1 parent 9bb0b05 commit d82cc32

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

‎src/graphql/execution/execute.py‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,18 +1651,16 @@ def collect_subfields(
16511651

16521652
def map_source_to_response(
16531653
self, result_or_stream: Union[ExecutionResult, AsyncIterable[Any]]
1654-
) -> AwaitableOrValue[
1655-
Union[
1656-
AsyncGenerator[
1657-
Union[
1658-
ExecutionResult,
1659-
InitialIncrementalExecutionResult,
1660-
SubsequentIncrementalExecutionResult,
1661-
],
1662-
None,
1654+
) -> Union[
1655+
AsyncGenerator[
1656+
Union[
1657+
ExecutionResult,
1658+
InitialIncrementalExecutionResult,
1659+
SubsequentIncrementalExecutionResult,
16631660
],
1664-
ExecutionResult,
1665-
]
1661+
None,
1662+
],
1663+
ExecutionResult,
16661664
]:
16671665
"""Map source result to response.
16681666

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /