Message368556
| Author |
gvanrossum |
| Recipients |
JelleZijlstra, gvanrossum, levkivskyi, serhiy.storchaka |
| Date |
2020年05月10日.00:48:39 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1589071719.81.0.243317809748.issue40397@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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. |
|