mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-23 15:10:48 +03:00
fixed linting
This commit is contained in:
parent
6734a603f2
commit
b0ec253c22
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user