TypeAlias
forward reference results in Unknown
#3654
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
Code Snippet
Repro Steps
Copy-paste the above code and see Pylance's highlighting / hover type hints.
Expected behavior
The type hints are correct, and Pylance does not error. The code typechecks according to mypy 0.991, and forward references in explicit type aliases are supported in PEP 613
Actual behavior
The type hints give red underlines.
Bar
is "Unknown".The text was updated successfully, but these errors were encountered: