Guido van Rossum <gu...@python.org> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40397> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com