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
class A: a: int = 0 b: int = 1 print(A.__annotations__)
mypy output: error: "A" has no attribute "__annotations__"
error: "A" has no attribute "__annotations__"
checked with mypy v0.501
The text was updated successfully, but these errors were encountered:
I'll work on a PR for adding this and other NamedTuple features today.
Sorry, something went wrong.
Actually, the sample code isn't even on a NamedTuple, so this is an independent issue.
Add support for NamedTuple methods (#3081)
3589c08
This is the mypy implementation of python/typing#352. Also fixes #3075.
Successfully merging a pull request may close this issue.
mypy output:
error: "A" has no attribute "__annotations__"
checked with mypy v0.501
The text was updated successfully, but these errors were encountered: