We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
import datetime from typing import NamedTuple class C(NamedTuple): datetime: datetime.datetime print(C.__annotations__)
$ python t.py OrderedDict([('datetime', <class 'datetime.datetime'>)])
$ mypy --version mypy 0.650 $ mypy t.py t.py:6: error: Invalid type "t.C.datetime"
I ended up renaming my attribute, though as far as I can tell this is legal code that mypy is rejecting
The text was updated successfully, but these errors were encountered:
This is essentially a duplicate of #3775, in particular see this comment #3775 (comment)
Sorry, something went wrong.
No branches or pull requests
I ended up renaming my attribute, though as far as I can tell this is legal code that mypy is rejecting
The text was updated successfully, but these errors were encountered: