New submission from Shantanu <hauntsani...@gmail.com>: 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 ``` ---------- messages: 368009 nosy: hauntsaninja priority: normal severity: normal status: open title: Pegen can't parse some function type comments _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40493> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com