summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2020-05-06 18:11:04 (GMT)
committerGitHub <noreply@github.com>2020-05-06 18:11:04 (GMT)
commit999ec9ab6af536cc2666a0847ec02331aaf00416 (patch)
treeee895da1c75a6887f0c8b305ea0704acc3537c54 /Grammar
parentb7aa23d29fa48238dab3692d02e1f0a7e8a5af9c (diff)
downloadcpython-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.gram2
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,