MCPcopy
hub / github.com/celery/celery / __bool__

Method __bool__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_get_current_objectMethod · 0.95

Tested by

no test coverage detected