Message379196
Callable is very special generic. It differs in many ways from List or Awaitable. You cannot just use GenericAlias.
Also, in contrary to list() or dict(), callable() is not a constructor, it is a predicate. callable[[int], str]() does not make sense. |
|
Date |
User |
Action |
Args |
2020-10-21 06:32:41 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, levkivskyi, hauntsaninja, kj |
2020-10-21 06:32:41 | serhiy.storchaka | set | messageid: <1603261961.3.0.851194750736.issue42102@roundup.psfhosted.org> |
2020-10-21 06:32:41 | serhiy.storchaka | link | issue42102 messages |
2020-10-21 06:32:41 | serhiy.storchaka | create | |
|