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

Function is_numeric_value

celery/utils/functional.py:504–505  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

502
503
504def is_numeric_value(value):
505 return isinstance(value, (int, float)) and not isinstance(value, bool)

Callers 2

test_is_numeric_valueFunction · 0.90
tickMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_is_numeric_valueFunction · 0.72