mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-03 06:28:28 +08:00
Support Python 3.14 (#13957)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user