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

Method __bool__

celery/utils/collections.py:289–291  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

287 return any(key in m for m in self.maps)
288
289 def __bool__(self):
290 # type: () -> bool
291 return any(self.maps)
292 __nonzero__ = __bool__ # Py2
293
294 def setdefault(self, key, default=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected