MCPcopy Index your code
hub / github.com/ipython/ipython / NoBoolCall

Class NoBoolCall

tests/test_oinspect.py:153–164  ·  view source on GitHub ↗

callable with `__bool__` raising should still be inspect-able.

Source from the content-addressed store, hash-verified

151
152
153class NoBoolCall:
154 """
155 callable with `__bool__` raising should still be inspect-able.
156 """
157
158 def __call__(self):
159 """does nothing"""
160 pass
161
162 def __bool__(self):
163 """just raise NotImplemented"""
164 raise NotImplementedError("Must be implemented")
165
166
167class SerialLiar(object):

Callers 1

test_bool_raiseFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_bool_raiseFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…