fixed linting

This commit is contained in:
Markus Padourek 2016-06-08 17:37:37 +01:00
parent 6734a603f2
commit b0ec253c22

View File

@ -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)