]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40493: fix function type comment parsing (GH-19894)
authorShantanu <hauntsaninja@users.noreply.github.com>
Mon, 4 May 2020 05:08:14 +0000 (22:08 -0700)
committerGitHub <noreply@github.com>
Mon, 4 May 2020 05:08:14 +0000 (22:08 -0700)
commit603d3546264149f323edb7952b60075fb6bc4dc2
treea0ef9ad7c3453ac9cb48f3ed3cfa2268d565d438
parentc95e691c904bb5ebd91825efa81b93cb9e354a85
bpo-40493: fix function type comment parsing (GH-19894)

The grammar for func_type_input rejected things like `(*t1) ->t2`. This fixes that.

Automerge-Triggered-By: @gvanrossum
Grammar/python.gram
Lib/test/test_type_comments.py
Parser/pegen/parse.c