callable with `__bool__` raising should still be inspect-able.
| 132 | raise Exception(name) |
| 133 | |
| 134 | class NoBoolCall: |
| 135 | """ |
| 136 | callable with `__bool__` raising should still be inspect-able. |
| 137 | """ |
| 138 | |
| 139 | def __call__(self): |
| 140 | """does nothing""" |
| 141 | pass |
| 142 | |
| 143 | def __bool__(self): |
| 144 | """just raise NotImplemented""" |
| 145 | raise NotImplementedError('Must be implemented') |
| 146 | |
| 147 | |
| 148 | class SerialLiar(object): |
no outgoing calls