MCPcopy Create free account
hub / github.com/cdgriffith/Box / __bool__

Method __bool__

test/test_box_list.py:61–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 return iter([{"value": 1}])
60
61 def __bool__(self):
62 if falsey:
63 return False
64 raise ValueError("ambiguous truth value")
65
66 result = BoxList(Rows())
67 assert len(result) == 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected