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

Method __bool__

numpy/core/tests/test_nditer.py:3018–3019  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3016 # caused by an incorrect fallthrough of the TypeError
3017 class T:
3018 def __bool__(self):
3019 raise TypeError("Ambiguous")
3020 assert_raises(TypeError, np.logical_or.reduce,
3021 np.array([T(), T()], dtype='O'))
3022

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected