Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
414
def
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
419
def
seq_concat_item(seq, item):
Callers
1
execute_using_pool
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected