diff options
author | 2020-05-01 16:32:09 +0100 | |
---|---|---|
committer | 2020-05-01 08:32:09 -0700 | |
commit | d955241469c18c946924dba79c18a9ef200391ad (patch) | |
tree | 842104f822eb31616102d1d4a93169112a4b67ff /Grammar | |
parent | bpo-40334: unskip test_function_type in test_unparse with the new parser (GH-... (diff) | |
download | cpython-d955241469c18c946924dba79c18a9ef200391ad.tar.gz cpython-d955241469c18c946924dba79c18a9ef200391ad.tar.bz2 cpython-d955241469c18c946924dba79c18a9ef200391ad.zip |
bpo-40334: Correct return value of func_type_comment (GH-19833)
Diffstat (limited to 'Grammar')
-rw-r--r-- | Grammar/python.gram | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/python.gram b/Grammar/python.gram index 3813d8845be..0acd851e09f 100644 --- a/Grammar/python.gram +++ b/Grammar/python.gram @@ -210,7 +210,7 @@ function_def_raw[stmt_ty]: (params) ? params : CHECK(_PyPegen_empty_arguments(p)), b, NULL, a, NEW_TYPE_COMMENT(p, tc), EXTRA) ) } -func_type_comment[PyObject*]: +func_type_comment[Token*]: | NEWLINE t=TYPE_COMMENT &(NEWLINE INDENT) { t } # Must be followed by indented block | invalid_double_type_comments | TYPE_COMMENT |