消息 [367313]
>>> from typing import *
>>> get_args(Callable)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/serhiy/py/cpython/Lib/typing.py", line 1412, in get_args
if get_origin(tp) is collections.abc.Callable and res[0] is not Ellipsis:
IndexError: tuple index out of range
What is the correct behavior? |
|
| 日期 |
用户 |
动作 |
参数 |
| 2020-04-26 16:46:07 | serhiy.storchaka | 修改 | recipients:
+ serhiy.storchaka, gvanrossum, levkivskyi |
| 2020-04-26 16:46:07 | serhiy.storchaka | 修改 | messageid: <1587919567.44.0.458722941462.issue40398@roundup.psfhosted.org> |
| 2020-04-26 16:46:07 | serhiy.storchaka | 链接 | issue40398 messages |
| 2020-04-26 16:46:07 | serhiy.storchaka | 创建 | |
|