diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2020-05-06 18:11:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-06 18:11:04 (GMT) |
commit | 999ec9ab6af536cc2666a0847ec02331aaf00416 (patch) | |
tree | ee895da1c75a6887f0c8b305ea0704acc3537c54 /Grammar | |
parent | b7aa23d29fa48238dab3692d02e1f0a7e8a5af9c (diff) | |
download | cpython-999ec9ab6af536cc2666a0847ec02331aaf00416.zip cpython-999ec9ab6af536cc2666a0847ec02331aaf00416.tar.gz cpython-999ec9ab6af536cc2666a0847ec02331aaf00416.tar.bz2 |
bpo-40334: Add type to the assignment rule in the grammar file (GH-19963)
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 0ce6ab4..3f16768 100644 --- a/Grammar/python.gram +++ b/Grammar/python.gram @@ -82,7 +82,7 @@ compound_stmt[stmt_ty]: | &'while' while_stmt # NOTE: annotated_rhs may start with 'yield'; yield_expr must start with 'yield' -assignment: +assignment[stmt_ty]: | a=NAME ':' b=expression c=['=' d=annotated_rhs { d }] { CHECK_VERSION( 6, |