--- /home/docs/checkouts/readthedocs.org/user_builds/restrictedpython/checkouts/stable/docs/contributing/ast/python3_13.ast
+++ /home/docs/checkouts/readthedocs.org/user_builds/restrictedpython/checkouts/stable/docs/contributing/ast/python3_14.ast
@@ -1,8 +1,8 @@
--- Python 3.13 AST
+-- Python 3.14 AST
-- ASDL's 4 builtin types are:
-- identifier, int, string, constant
-module Python version "3.13"
+module Python version "3.14"
{
mod = Module(stmt* body, type_ignore* type_ignores)
| Interactive(stmt* body)
@@ -74,7 +74,7 @@
| UnaryOp(unaryop op, expr operand)
| Lambda(arguments args, expr body)
| IfExp(expr test, expr body, expr orelse)
- | Dict(expr* keys, expr* values)
+ | Dict(expr?* keys, expr* values)
| Set(expr* elts)
| ListComp(expr elt, comprehension* generators)
| SetComp(expr elt, comprehension* generators)
@@ -89,7 +89,9 @@
| Compare(expr left, cmpop* ops, expr* comparators)
| Call(expr func, expr* args, keyword* keywords)
| FormattedValue(expr value, int conversion, expr? format_spec)
+ | Interpolation(expr value, constant str, int conversion, expr? format_spec)
| JoinedStr(expr* values)
+ | TemplateStr(expr* values)
| Constant(constant value, string? kind)
-- the following expression can appear in assignment context