Skip to content

Commit b335f5f

Browse files
committed
style: Fixed lint errors, and black formatting
1 parent f84c3c5 commit b335f5f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/graphql/utilities/coerce_input_value.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,18 @@ def coerce_input_value(
7070
if is_iterable(input_value):
7171
coerced_list: List[Any] = []
7272
append_item = coerced_list.append
73-
is_nested_list = bool(is_list_type(item_type) and len(input_value) > 1)
73+
is_nested_list = bool(
74+
is_list_type(item_type) and len(tuple(input_value)) > 1
75+
)
7476
for index, item_value in enumerate(input_value):
7577
if is_nested_list and not is_iterable(item_value):
76-
# All input values should be iterable for multivalued nested list types
78+
# Input values should be iterable for multivalued nested list type
7779
on_error(
7880
path.as_list() if path else Path(path, index, None).as_list(),
7981
item_value,
80-
GraphQLError(f"Expected type '{inspect(item_type)}' to be a list."),
82+
GraphQLError(
83+
f"Expected type '{inspect(item_type)}' to be a list."
84+
),
8185
)
8286
append_item(
8387
coerce_input_value(

0 commit comments

Comments
 (0)