From 2fbff735ff28a0b710035bda4d14f056f4275b52 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Tue, 26 Dec 2023 09:49:38 -0500 Subject: [PATCH] Make attributes required on AST type_param classes Refs python/cpython#106224 --- stdlib/_ast.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdlib/_ast.pyi b/stdlib/_ast.pyi index 0302133fc6f9..0fbf66f7feda 100644 --- a/stdlib/_ast.pyi +++ b/stdlib/_ast.pyi @@ -586,7 +586,9 @@ if sys.version_info >= (3, 10): patterns: list[pattern] if sys.version_info >= (3, 12): - class type_param(AST): ... + class type_param(AST): + end_lineno: int + end_col_offset: int class TypeVar(type_param): __match_args__ = ("name", "bound")