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

Method __bool__

test/test_comments.py:469–470  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

467def test_inplace_repetition_keeps_comments_on_false_valued_subclass():
468 class FalseBoxList(BoxList):
469 def __bool__(self):
470 return False
471
472 values = FalseBoxList(["old"])
473 values.set_comment(0, "explanation")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected