MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __bool__

Method __bool__

pager_lib/tqdm/std.py:1105–1110  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1103 self.start_t = self.last_print_t
1104
1105 def __bool__(self):
1106 if self.total is not None:
1107 return self.total > 0
1108 if self.iterable is None:
1109 raise TypeError('bool() undefined when iterable == total == None')
1110 return bool(self.iterable)
1111
1112 def __len__(self):
1113 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected