PEP 604 error with TypedDict not recognized #918
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
Alternative syntax for unions error
for TypedDict equivalent syntax forms even with postponed evaluation enabled (Python 3.8). https://docs.python.org/3/library/typing.html#typing.TypedDictActual 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
--
Similar to #917
The text was updated successfully, but these errors were encountered: