From f8cb8a16a344ab208fd46876c4b63604987347b8 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Thu, 8 Sep 2016 20:50:03 -0700 Subject: Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations. Patch by Ivan Levkivskyi. --- Parser/Python.asdl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Parser') 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) -- cgit v1.2.1