We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is an example demonstrating the issue:
import tensor_annotations.tensorflow as ttf import tensorflow as tf x: ttf.Tensor1 = tf.zeros((10,)) print(x.shape[0])
This is valid code, but running a type checker (such as mypy) reports
mypy
tmp/tmp.py:6: error: Value of type "TensorShape" is not indexable
The text was updated successfully, but these errors were encountered:
Thanks for the report! I'll push a fix on Monday or so.
Sorry, something went wrong.
No branches or pull requests
Here is an example demonstrating the issue:
This is valid code, but running a type checker (such as
mypy
) reportsThe text was updated successfully, but these errors were encountered: