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, levkivskyi, serhiy.storchaka
Date 2020-04-26.16:46:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587919567.44.0.458722941462.issue40398@roundup.psfhosted.org>
In-reply-to
Content
>>> 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?
History
Date User Action Args
2020-04-26 16:46:07serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, levkivskyi
2020-04-26 16:46:07serhiy.storchakasetmessageid: <1587919567.44.0.458722941462.issue40398@roundup.psfhosted.org>
2020-04-26 16:46:07serhiy.storchakalinkissue40398 messages
2020-04-26 16:46:07serhiy.storchakacreate