PEP 585 error with TypedDict not recognized #917
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
Recognize
TypeError
for TypedDict equivalent syntax forms even with postponed evaluation enabled (Python 3.8).https://docs.python.org/3/library/typing.html#typing.TypedDict
Actual behaviour
The code sample below causes two
TypeErrors
to be thrown even withfrom __future__ import annotations
.However, pylance only recognizes it if the future import is missing.
Logs
--
Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: