From b0ec253c2238cf203878e97f9c72dd5a8d92f7de Mon Sep 17 00:00:00 2001 From: Markus Padourek Date: Wed, 8 Jun 2016 17:37:37 +0100 Subject: [PATCH] fixed linting --- graphene/relay/types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/graphene/relay/types.py b/graphene/relay/types.py index db4ea8e6..ced0140c 100644 --- a/graphene/relay/types.py +++ b/graphene/relay/types.py @@ -90,12 +90,12 @@ class Connection(ObjectType): def from_list(cls, iterable, args, context, info, total_count=None): assert isinstance( iterable, Iterable), 'Resolved value from the connection field have to be iterable' - + list_slice_length = len(iterable) list_length = total_count if total_count else list_slice_length - + connection = connection_from_list_slice( - iterable, args, connection_type=cls, + iterable, args, connection_type=cls, edge_type=cls.edge_type, pageinfo_type=PageInfo, list_length=list_length, list_slice_length=list_slice_length) connection.set_connection_data(iterable)