Skip to content

Commit ba50fb8

Browse files
committed
Improve naming: 'array' instead of 'arr'
Replicates graphql/graphql-js@78d5f83
1 parent c25e450 commit ba50fb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/graphql/utilities/lexicographic_sort_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ def sort_input_fields(
9797
for name, field in sorted(fields_map.items())
9898
}
9999

100-
def sort_types(arr: FrozenList[GraphQLNamedType]) -> List[GraphQLNamedType]:
100+
def sort_types(array: FrozenList[GraphQLNamedType]) -> List[GraphQLNamedType]:
101101
return [
102-
replace_named_type(type_) for type_ in sorted(arr, key=sort_by_name_key)
102+
replace_named_type(type_) for type_ in sorted(array, key=sort_by_name_key)
103103
]
104104

105105
def sort_named_type(type_: GraphQLNamedType) -> GraphQLNamedType:

0 commit comments

Comments
 (0)