From a4d3f6f0de94d0beb98cb478eb031aecf5badce9 Mon Sep 17 00:00:00 2001 From: Hunter Hogan Date: Sat, 3 May 2025 05:05:20 -0500 Subject: [PATCH] Re-export `ast.Match` and `ast.TypeAlias` from `_ast.pyi` (#13926) This matches what we do for all other AST nodes --- stdlib/_ast.pyi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stdlib/_ast.pyi b/stdlib/_ast.pyi index bc0ebd9d8..00c6b357f 100644 --- a/stdlib/_ast.pyi +++ b/stdlib/_ast.pyi @@ -111,13 +111,20 @@ from ast import ( from typing import Literal if sys.version_info >= (3, 12): - from ast import ParamSpec as ParamSpec, TypeVar as TypeVar, TypeVarTuple as TypeVarTuple, type_param as type_param + from ast import ( + ParamSpec as ParamSpec, + TypeAlias as TypeAlias, + TypeVar as TypeVar, + TypeVarTuple as TypeVarTuple, + type_param as type_param, + ) if sys.version_info >= (3, 11): from ast import TryStar as TryStar if sys.version_info >= (3, 10): from ast import ( + Match as Match, MatchAs as MatchAs, MatchClass as MatchClass, MatchMapping as MatchMapping,