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 serhiy.storchaka
Recipients gvanrossum, kj, serhiy.storchaka
Date 2021-07-31.12:24:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627734266.52.0.0397934894464.issue44793@roundup.psfhosted.org>
In-reply-to
Content
>>> import typing
>>> T = typing.TypeVar('T')
>>> P = typing.ParamSpec('P')
>>> C = typing.Callable[P, T]
>>> C[int, str, float]
typing.Callable[[int], str]

int substitutes P as [int], str substitutes T, and the third argument float is ignored.
History
Date User Action Args
2021-07-31 12:24:26serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, kj
2021-07-31 12:24:26serhiy.storchakasetmessageid: <1627734266.52.0.0397934894464.issue44793@roundup.psfhosted.org>
2021-07-31 12:24:26serhiy.storchakalinkissue44793 messages
2021-07-31 12:24:26serhiy.storchakacreate