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 hauntsaninja
Recipients hauntsaninja
Date 2020-05-04.04:21:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588566100.71.0.917063092257.issue40493@roundup.psfhosted.org>
In-reply-to
Content
Currently fails if we don't have any arguments before *args and **kwargs

```
~ λ python3.9
Python 3.9.0a6+ (heads/master:c95e691, May  3 2020, 19:57:46) 
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast; ast.parse("(*int) -> None", mode="func_type", type_comments=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/shantanu/.pyenv/versions/3.9-dev/lib/python3.9/ast.py", line 50, in parse
    return compile(source, filename, mode, flags,
  File "<unknown>", line 1
    (*int) -> None
     ^
SyntaxError: invalid syntax
```
History
Date User Action Args
2020-05-04 04:21:40hauntsaninjasetrecipients: + hauntsaninja
2020-05-04 04:21:40hauntsaninjasetmessageid: <1588566100.71.0.917063092257.issue40493@roundup.psfhosted.org>
2020-05-04 04:21:40hauntsaninjalinkissue40493 messages
2020-05-04 04:21:40hauntsaninjacreate