mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-08 22:36:18 +08:00
Add new ast node from 3.14 (#14034)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user