New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:
>>> import typing >>> T = typing.TypeVar('T') >>> (int | T)[typing.Union[str, list]] NotImplemented See also issue44633. But in this case the expected result is int | str | list or typing.Union[init, str, list]. ---------- components: Interpreter Core messages: 397624 nosy: gvanrossum, kj, serhiy.storchaka priority: normal severity: normal status: open title: Parameter substitution in the union type does not work with typing.Union type: behavior versions: Python 3.10, Python 3.11 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44653> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com