You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an old bug, but I couldn't find an existing issue. #999 is closely related -- fixing either of these issues would likely make the remaining issue trivial to fix.
Fixes#2428
All of the following are now allowed, but fail at runtime:
```
list[int]
dict[int, str]
set[int]
tuple[int]
frozenset[int]
enumerate[int]
collections.defaultdict[int, str]
collections.Counter[str]
collections.ChainMap[str, str]
```
I prohibit those by simply tracking whether a corresponding symbol table node was normalized or not.
@gvanrossum I make an exclusion for stubs, because a have found dozens of places where this is used in typeshed, if you think that it also makes sense to prohibit this in stubs, then I will make an additional PR to typeshed.
mypy currently accepts
while all of those fail at runtime. I think those should be flagged as errors.
The text was updated successfully, but these errors were encountered: