Skip to content

Commit 46cf844

Browse files
committed
execute: fix spec section names in comments
Replicates graphql/graphql-js@0d1297a
1 parent dd0f93b commit 46cf844

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/graphql/execution/execute.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def execute_field(
497497
) -> AwaitableOrValue[Any]:
498498
"""Resolve the field on the given source object.
499499
500-
Implements the "Executing field" section of the spec.
500+
Implements the "Executing fields" section of the spec.
501501
502502
In particular, this method figures out the value that the field returns by
503503
calling its resolve function, then calls complete_value to await coroutine
@@ -589,15 +589,15 @@ def complete_value(
589589
) -> AwaitableOrValue[Any]:
590590
"""Complete a value.
591591
592-
Implements the instructions for completeValue as defined in the "Field entries"
593-
section of the spec.
592+
Implements the instructions for completeValue as defined in the
593+
"Value completion" section of the spec.
594594
595-
If the field type is Non-Null, then this recursively completes the value for the
596-
inner type. It throws a field error if that completion returns null, as per the
597-
"Nullability" section of the spec.
595+
If the field type is Non-Null, then this recursively completes the value
596+
for the inner type. It throws a field error if that completion returns null,
597+
as per the "Nullability" section of the spec.
598598
599-
If the field type is a List, then this recursively completes the value for the
600-
inner type on each item in the list.
599+
If the field type is a List, then this recursively completes the value
600+
for the inner type on each item in the list.
601601
602602
If the field type is a Scalar or Enum, ensures the completed value is a legal
603603
value of the type by calling the ``serialize`` method of GraphQL type

0 commit comments

Comments
 (0)