diff options
| author | Yury Selivanov <yury@magic.io> | 2016-09-08 20:50:03 -0700 |
|---|---|---|
| committer | Yury Selivanov <yury@magic.io> | 2016-09-08 20:50:03 -0700 |
| commit | f8cb8a16a344ab208fd46876c4b63604987347b8 (patch) | |
| tree | c44caa48291401d1e1e388004d2762513ac88c93 /Parser | |
| parent | 09ad17810c38d1aaae02de69084dd2a8ad9f5cdb (diff) | |
| download | cpython-git-f8cb8a16a344ab208fd46876c4b63604987347b8.tar.gz | |
Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.
Patch by Ivan Levkivskyi.
Diffstat (limited to 'Parser')
| -rw-r--r-- | Parser/Python.asdl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl index aaddf619e7..6e982f432e 100644 --- a/Parser/Python.asdl +++ b/Parser/Python.asdl @@ -28,6 +28,8 @@ module Python | Delete(expr* targets) | Assign(expr* targets, expr value) | AugAssign(expr target, operator op, expr value) + -- 'simple' indicates that we annotate simple name without parens + | AnnAssign(expr target, expr annotation, expr? value, int simple) -- use 'orelse' because else is a keyword in target languages | For(expr target, expr iter, stmt* body, stmt* orelse) |
