MCPcopy Create free account
hub / github.com/celery/celery / xsum

Function xsum

t/integration/tasks.py:144–146  ·  view source on GitHub ↗

Sum of ints and lists.

(nums)

Source from the content-addressed store, hash-verified

142
143@shared_task
144def xsum(nums):
145 """Sum of ints and lists."""
146 return sum(sum(num) if isinstance(num, Iterable) else num for num in nums)
147
148
149@shared_task(bind=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected