summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-05-01 15:32:09 (GMT)
committerGitHub <noreply@github.com>2020-05-01 15:32:09 (GMT)
commitd955241469c18c946924dba79c18a9ef200391ad (patch)
tree842104f822eb31616102d1d4a93169112a4b67ff /Grammar
parentea7297cf8f1aad4df8921a3d81a75118511afe77 (diff)
downloadcpython-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.gram2
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