Support Python 3.14 (#13957)

This commit is contained in:
Sebastian Rittau
2025-05-10 06:27:40 -07:00
committed by GitHub
parent 519b7ef021
commit 2d50d6b316
21 changed files with 1082 additions and 34 deletions
+6 -1
View File
@@ -185,6 +185,11 @@ else:
_TypeVarTuple: TypeAlias = Never
_TypeAlias: TypeAlias = Never
if sys.version_info >= (3, 14):
_NameConstant: TypeAlias = Never
else:
_NameConstant: TypeAlias = ast.NameConstant
class Checker:
nodeDepth: int
offset: tuple[int, int] | None
@@ -254,7 +259,7 @@ class Checker:
def SET(self, tree: ast.Set, omit: _OmitType = None) -> None: ...
def ATTRIBUTE(self, tree: ast.Attribute, omit: _OmitType = None) -> None: ...
def STARRED(self, tree: ast.Starred, omit: _OmitType = None) -> None: ...
def NAMECONSTANT(self, tree: ast.NameConstant, omit: _OmitType = None) -> None: ...
def NAMECONSTANT(self, tree: _NameConstant, omit: _OmitType = None) -> None: ...
def NAMEDEXPR(self, tree: ast.NamedExpr, omit: _OmitType = None) -> None: ...
def SUBSCRIPT(self, node: ast.Subscript) -> None: ...
def CALL(self, node: ast.Call) -> None: ...