This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
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:39gvanrossumsetrecipients: + gvanrossum, serhiy.storchaka, levkivskyi, JelleZijlstra
2020-05-10 00:48:39gvanrossumsetmessageid: <>
2020-05-10 00:48:39gvanrossumlinkissue40397 messages
2020-05-10 00:48:39gvanrossumcreate