Add new ast node from 3.14 (#14034)

This commit is contained in:
sobolevn
2025-05-13 18:12:57 +03:00
committed by GitHub
parent 82af3b25ba
commit 209383988d
2 changed files with 32 additions and 2 deletions
@@ -15,8 +15,6 @@ _socket.IP_RECVTTL
_socket.if_indextoname
_thread.RLock.locked
_thread.set_name
ast.Interpolation
ast.TemplateStr
asyncio.__all__
asyncio._AbstractEventLoopPolicy
asyncio._DefaultEventLoopPolicy
+32
View File
@@ -1,3 +1,4 @@
import builtins
import os
import sys
import typing_extensions
@@ -1063,6 +1064,37 @@ class JoinedStr(expr):
if sys.version_info >= (3, 14):
def __replace__(self, *, values: list[expr] = ..., **kwargs: Unpack[_Attributes]) -> Self: ...
if sys.version_info >= (3, 14):
class TemplateStr(expr):
__match_args__ = ("values",)
values: list[expr]
def __init__(self, values: list[expr] = ..., **kwargs: Unpack[_Attributes]) -> None: ...
def __replace__(self, *, values: list[expr] = ..., **kwargs: Unpack[_Attributes]) -> Self: ...
class Interpolation(expr):
__match_args__ = ("value", "str", "conversion", "format_spec")
value: expr
str: builtins.str
conversion: int
format_spec: builtins.str | None = None
def __init__(
self,
value: expr = ...,
str: builtins.str = ...,
conversion: int = ...,
format_spec: builtins.str | None = ...,
**kwargs: Unpack[_Attributes],
) -> None: ...
def __replace__(
self,
*,
value: expr = ...,
str: builtins.str = ...,
conversion: int = ...,
format_spec: builtins.str | None = ...,
**kwargs: Unpack[_Attributes],
) -> Self: ...
class Constant(expr):
if sys.version_info >= (3, 10):
__match_args__ = ("value", "kind")