Update typing_extensions.deprecated decorator to use LiteralString (#11700)

This commit is contained in:
DetachHead
2024-04-02 12:02:41 +10:00
committed by GitHub
parent d6aec09359
commit 325577cb76

View File

@@ -453,10 +453,10 @@ class TypeVarTuple:
def __iter__(self) -> Any: ... # Unpack[Self]
class deprecated:
message: str
message: LiteralString
category: type[Warning] | None
stacklevel: int
def __init__(self, message: str, /, *, category: type[Warning] | None = ..., stacklevel: int = 1) -> None: ...
def __init__(self, message: LiteralString, /, *, category: type[Warning] | None = ..., stacklevel: int = 1) -> None: ...
def __call__(self, arg: _T, /) -> _T: ...
if sys.version_info >= (3, 12):