diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-05-01 15:32:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 15:32:09 (GMT) |
commit | d955241469c18c946924dba79c18a9ef200391ad (patch) | |
tree | 842104f822eb31616102d1d4a93169112a4b67ff /Grammar | |
parent | ea7297cf8f1aad4df8921a3d81a75118511afe77 (diff) | |
download | cpython-d955241469c18c946924dba79c18a9ef200391ad.zip cpython-d955241469c18c946924dba79c18a9ef200391ad.tar.gz cpython-d955241469c18c946924dba79c18a9ef200391ad.tar.bz2 |
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 3813d88..0acd851 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 |