PEP 585 runtime exceptions not recognized #1001
Labels
enhancement
New feature or request
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
typeCheckingMode
:strict
Expected behaviour
The following examples should be invalid without
from __future__ import annotations
in Python 3.7 and 3.8.https://docs.python.org/3/library/typing.html#corresponding-to-other-types-in-collections-abc
Actual behaviour
Pylance doesn't infer them as errors.
Interestingly
collections.OrderedDict[int, str]
,ChainMap
,Counter
anddeque
are recognized correctly.The text was updated successfully, but these errors were encountered: