mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-40334: Correct return value of func_type_comment (GH-19833)
This commit is contained in:
parent
ea7297cf8f
commit
d955241469
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue