bpo-40334: Add type to the assignment rule in the grammar file (GH-19963)

This commit is contained in:
Lysandros Nikolaou 2020-05-06 21:11:04 +03:00 committed by GitHub
parent b7aa23d29f
commit 999ec9ab6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -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,