Skip to content

Commit a4d3f6f

Browse files
authored
Re-export ast.Match and ast.TypeAlias from _ast.pyi (#13926)
This matches what we do for all other AST nodes
1 parent c994e2d commit a4d3f6f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

stdlib/_ast.pyi

+8-1
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,20 @@ from ast import (
111111
from typing import Literal
112112

113113
if sys.version_info >= (3, 12):
114-
from ast import ParamSpec as ParamSpec, TypeVar as TypeVar, TypeVarTuple as TypeVarTuple, type_param as type_param
114+
from ast import (
115+
ParamSpec as ParamSpec,
116+
TypeAlias as TypeAlias,
117+
TypeVar as TypeVar,
118+
TypeVarTuple as TypeVarTuple,
119+
type_param as type_param,
120+
)
115121

116122
if sys.version_info >= (3, 11):
117123
from ast import TryStar as TryStar
118124

119125
if sys.version_info >= (3, 10):
120126
from ast import (
127+
Match as Match,
121128
MatchAs as MatchAs,
122129
MatchClass as MatchClass,
123130
MatchMapping as MatchMapping,

0 commit comments

Comments
 (0)