Skip to content

Commit

Permalink
Improve docstring for lexicographic_sort_schema (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Jan 23, 2020
1 parent b320331 commit c61c65d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/graphql/utilities/lexicographic_sort_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@


def lexicographic_sort_schema(schema: GraphQLSchema) -> GraphQLSchema:
"""Sort GraphQLSchema."""
"""Sort GraphQLSchema.
This function returns a sorted copy of the given GraphQLSchema.
"""

def replace_type(type_):
if is_list_type(type_):
Expand Down

0 comments on commit c61c65d

Please sign in to comment.