← 输入框|bugs.python.org|刷新

➜

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.

作者 serhiy.storchaka
收信人 gvanrossum, levkivskyi, serhiy.storchaka
日期 2020-04-26.16:46:07
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1587919567.44.0.458722941462.issue40398@roundup.psfhosted.org>
In-reply-to
内容
>>> 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:07serhiy.storchaka修改recipients: + serhiy.storchaka, gvanrossum, levkivskyi
2020-04-26 16:46:07serhiy.storchaka修改messageid: <1587919567.44.0.458722941462.issue40398@roundup.psfhosted.org>
2020-04-26 16:46:07serhiy.storchaka链接issue40398 messages
2020-04-26 16:46:07serhiy.storchaka创建