MCPcopy Create free account
hub / github.com/bpython/bpython / __nonzero__

Method __nonzero__

bpython/test/test_autocomplete.py:183–187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

181 to convert it to a boolean."""
182
183 def __nonzero__(self):
184 raise ValueError(
185 "The truth value of an array with more than one "
186 "element is ambiguous. Use a.any() or a.all()"
187 )
188
189
190class TestDictKeyCompletion(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected