Message398636
>>> 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. |
|
Date |
User |
Action |
Args |
2021-07-31 12:24:26 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, kj |
2021-07-31 12:24:26 | serhiy.storchaka | set | messageid: <1627734266.52.0.0397934894464.issue44793@roundup.psfhosted.org> |
2021-07-31 12:24:26 | serhiy.storchaka | link | issue44793 messages |
2021-07-31 12:24:26 | serhiy.storchaka | create | |
|