Message368556
I think I have a shorter repro, not involving unions:
from typing import *
T = TypeVar("T")
S = TypeVar("S")
U = TypeVar("U")
class A(Generic[T]): ...
class B(Generic[T]): ...
class C(Generic[T, S]): ...
print(C[A[U], B[int]][str])
Fails in the same place, works in 3.8 (I didn't check just before the offending commit), and the same fix works. |
|
Date |
User |
Action |
Args |
2020-05-10 00:48:39 | gvanrossum | set | recipients:
+ gvanrossum, serhiy.storchaka, levkivskyi, JelleZijlstra |
2020-05-10 00:48:39 | gvanrossum | set | messageid: <1589071719.81.0.243317809748.issue40397@roundup.psfhosted.org> |
2020-05-10 00:48:39 | gvanrossum | link | issue40397 messages |
2020-05-10 00:48:39 | gvanrossum | create | |
|