MCPcopy
hub / github.com/celery/celery / maybe

Function maybe

celery/utils/functional.py:414–416  ·  view source on GitHub ↗

Call typ on value if val is defined.

(typ, val)

Source from the content-addressed store, hash-verified

412
413
414def maybe(typ, val):
415 """Call typ on value if val is defined."""
416 return typ(val) if val is not None else val
417
418
419def seq_concat_item(seq, item):

Callers 1

execute_using_poolMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected