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
The error message "Tuple index must be an integer literal" is produced by the following code:
import enum class X(enum.IntEnum): a = 0 b = 1 t = ('a', 'b') print(t[X.a])
The text was updated successfully, but these errors were encountered:
This sounds like this might be a mypy issue. If you are using mypy, could you file this here: https://github.com/python/mypy/issues
Sorry, something went wrong.
I also don't think there's a typeshed bug here. The mypy problem is closely related to python/mypy#3078, so I'm not going to open a new mypy bug.
No branches or pull requests
The error message "Tuple index must be an integer literal" is produced by the following code:
The text was updated successfully, but these errors were encountered: