I asked about this previously: How to get a type check error on `__bool__`
The conclusion there did not seem to be that there is a well supported way of indicating that __bool__ should not be called.
I asked about this previously: How to get a type check error on `__bool__`
The conclusion there did not seem to be that there is a well supported way of indicating that __bool__ should not be called.