Changes from Python 3.12 to Python 3.13ΒΆ
--- /home/docs/checkouts/readthedocs.org/user_builds/restrictedpython/checkouts/latest/docs/contributing/ast/python3_12.ast
+++ /home/docs/checkouts/readthedocs.org/user_builds/restrictedpython/checkouts/latest/docs/contributing/ast/python3_13.ast
@@ -1,8 +1,8 @@
--- Python 3.12 AST
+-- Python 3.13 AST
-- ASDL's 4 builtin types are:
-- identifier, int, string, constant
-module Python version "3.12"
+module Python version "3.13"
{
mod = Module(stmt* body, type_ignore* type_ignores)
| Interactive(stmt* body)
@@ -187,8 +187,8 @@
type_ignore = TypeIgnore(int lineno, string tag)
- type_param = TypeVar(identifier name, expr? bound)
- | ParamSpec(identifier name)
- | TypeVarTuple(identifier name)
+ type_param = TypeVar(identifier name, expr? bound, expr? default_value)
+ | ParamSpec(identifier name, expr? default_value)
+ | TypeVarTuple(identifier name, expr? default_value)
attributes (int lineno, int col_offset, int end_lineno, int end_col_offset)
}