Currently[`Tensor.__bool__`'s signature](https://github.com/python/typeshed/blob/main/stubs/tensorflow/tensorflow/__init__.pyi#L117) is as follows: ```python class Tensor: def __bool__(self) -> NoReturn: ... ``` It suggests that the method should never be called, however the following is valid code: ```python import tensorflow as tf bool(tf.constant([1])) ``` Since this depends on the shape of the tensor, I don't know if this can be fixed, but it would be nice to have.