Update tokens for 3.14 (#14004)

This commit is contained in:
Semyon Moroz
2025-05-11 05:39:53 +00:00
committed by GitHub
parent 0f3ff0874c
commit e562665478
3 changed files with 11 additions and 8 deletions
@@ -201,14 +201,6 @@ tarfile.TarFile.zstopen
threading.Thread.__init__
threading._RLock.locked
tkinter.Event.__class_getitem__
token.__all__
token.TSTRING_END
token.TSTRING_MIDDLE
token.TSTRING_START
tokenize.__all__
tokenize.TSTRING_END
tokenize.TSTRING_MIDDLE
tokenize.TSTRING_START
tomllib.TOMLDecodeError.__init__
traceback.__all__
turtle.__all__
+8
View File
@@ -78,6 +78,9 @@ if sys.version_info >= (3, 10):
if sys.version_info >= (3, 12):
__all__ += ["EXCLAMATION", "FSTRING_END", "FSTRING_MIDDLE", "FSTRING_START", "EXACT_TOKEN_TYPES"]
if sys.version_info >= (3, 14):
__all__ += ["TSTRING_START", "TSTRING_MIDDLE", "TSTRING_END"]
ENDMARKER: int
NAME: int
NUMBER: int
@@ -155,6 +158,11 @@ if sys.version_info >= (3, 12):
FSTRING_MIDDLE: int
FSTRING_START: int
if sys.version_info >= (3, 14):
TSTRING_START: int
TSTRING_MIDDLE: int
TSTRING_END: int
def ISTERMINAL(x: int) -> bool: ...
def ISNONTERMINAL(x: int) -> bool: ...
def ISEOF(x: int) -> bool: ...
+3
View File
@@ -93,6 +93,9 @@ if sys.version_info >= (3, 12):
if sys.version_info >= (3, 13):
__all__ += ["TokenError", "open"]
if sys.version_info >= (3, 14):
__all__ += ["TSTRING_START", "TSTRING_MIDDLE", "TSTRING_END"]
cookie_re: Pattern[str]
blank_re: Pattern[bytes]