mirror of
https://github.com/python/cpython.git
synced 2025-09-24 17:33:29 +00:00
bpo-40334: Add type to the assignment rule in the grammar file (GH-19963)
This commit is contained in:
parent
b7aa23d29f
commit
999ec9ab6a
2 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue