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
{{ message }}
Repository navigation
Synthetic types are not processed in third pass #3308
While working on #3305 I discovered that "synthetic" types are not always properly processed in third pass (also there can be additional problems with them in fixup.py). This leads to crashes like these:
fromtypingimportList, NewType, NamedTuplefrommypy_extensionsimportTypedDictNT=NewType('NT', List[int, str])
classNM(NamedTuple):
x: List[int, str]
classTD(TypedDict):
x: List[int, str]
# crashers: any of these crashes with "IndexError: list index out of range"TD({'x': []})
NM(x=[])
NT([])
Activity
Fix crashes in synthetic types (#3322)