Skip to content

Commit 70df39d

Browse files
committed
Improve comment in coerce_input_value
Replicates graphql/graphql-js@ac90b52
1 parent 948d594 commit 70df39d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/graphql/utilities/coerce_input_value.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ def coerce_input_value(
130130
return type_.out_type(coerced_dict)
131131

132132
if is_leaf_type(type_):
133-
# Scalars determine if a value is valid via `parse_value()`, which can throw to
134-
# indicate failure. If it throws, maintain a reference to the original error.
133+
# Scalars and Enums determine if an input value is valid via `parse_value()`,
134+
# which can throw to indicate failure. If it throws, maintain a reference
135+
# to the original error.
135136
type_ = cast(GraphQLScalarType, type_)
136137
try:
137138
parse_result = type_.parse_value(input_value)

0 commit comments

Comments
 (0)