MCPcopy Create free account
hub / github.com/graphql-python/graphene / get_chunks

Function get_chunks

graphene/utils/dataloader.py:187–192  ·  view source on GitHub ↗
(iterable_obj, chunk_size=1)

Source from the content-addressed store, hash-verified

185
186
187def get_chunks(iterable_obj, chunk_size=1):
188 chunk_size = max(1, chunk_size)
189 return (
190 iterable_obj[i : i + chunk_size]
191 for i in range(0, len(iterable_obj), chunk_size)
192 )
193
194
195def dispatch_queue(loader):

Callers 1

dispatch_queueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected