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

Method __bool__

celery/local.py:127–131  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 return repr(obj)
126
127 def __bool__(self):
128 try:
129 return bool(self._get_current_object())
130 except RuntimeError: # pragma: no cover
131 return False
132
133 __nonzero__ = __bool__ # Py2
134

Callers

nothing calls this directly

Calls 1

_get_current_objectMethod · 0.95

Tested by

no test coverage detected