-
-
Notifications
You must be signed in to change notification settings - Fork 141
Closed
Description
Any reason that the return type of complete_list_value
is AwaitableOrValue[Any]
rather than AwaitableOrValue[List[Any]]
:
graphql-core/src/graphql/execution/execute.py
Lines 756 to 763 in c6f73a8
def complete_list_value( | |
self, | |
return_type: GraphQLList[GraphQLOutputType], | |
field_nodes: List[FieldNode], | |
info: GraphQLResolveInfo, | |
path: Path, | |
result: Iterable[Any], | |
) -> AwaitableOrValue[Any]: |
For comparison, execute_fields
returns AwaitableOrValue[Dict[str, Any]]
:
graphql-core/src/graphql/execution/execute.py
Lines 418 to 424 in c6f73a8
def execute_fields( | |
self, | |
parent_type: GraphQLObjectType, | |
source_value: Any, | |
path: Optional[Path], | |
fields: Dict[str, List[FieldNode]], | |
) -> AwaitableOrValue[Dict[str, Any]]: |
Cito
Metadata
Metadata
Assignees
Labels
No labels