diff --git a/stdlib/@tests/stubtest_allowlists/py314.txt b/stdlib/@tests/stubtest_allowlists/py314.txt index 161310ad1..fbfb79232 100644 --- a/stdlib/@tests/stubtest_allowlists/py314.txt +++ b/stdlib/@tests/stubtest_allowlists/py314.txt @@ -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__ diff --git a/stdlib/token.pyi b/stdlib/token.pyi index 741ce5b03..7c13b15d9 100644 --- a/stdlib/token.pyi +++ b/stdlib/token.pyi @@ -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: ... diff --git a/stdlib/tokenize.pyi b/stdlib/tokenize.pyi index 86e87704e..b658740a1 100644 --- a/stdlib/tokenize.pyi +++ b/stdlib/tokenize.pyi @@ -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]