From e718a7363f53706f10da2272c9b777b67472320d Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Sat, 16 Nov 2024 16:30:53 +0100 Subject: [PATCH] [Deprecated] Update to 1.2.15 (#13020) --- stubs/Deprecated/METADATA.toml | 2 +- stubs/Deprecated/deprecated/classic.pyi | 7 ++++++- stubs/Deprecated/deprecated/sphinx.pyi | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/stubs/Deprecated/METADATA.toml b/stubs/Deprecated/METADATA.toml index b491184ae..3a8731212 100644 --- a/stubs/Deprecated/METADATA.toml +++ b/stubs/Deprecated/METADATA.toml @@ -1,3 +1,3 @@ -version = "1.2.*" +version = "~=1.2.15" upstream_repository = "https://github.com/tantale/deprecated" requires = [] diff --git a/stubs/Deprecated/deprecated/classic.pyi b/stubs/Deprecated/deprecated/classic.pyi index d5b794ad9..7eadb72db 100644 --- a/stubs/Deprecated/deprecated/classic.pyi +++ b/stubs/Deprecated/deprecated/classic.pyi @@ -13,7 +13,12 @@ class ClassicAdapter: action: _Actions | None category: type[Warning] def __init__( - self, reason: str = "", version: str = "", action: _Actions | None = None, category: type[Warning] = ... + self, + reason: str = "", + version: str = "", + action: _Actions | None = None, + category: type[Warning] = ..., + extra_stacklevel: int = 0, ) -> None: ... def get_deprecated_msg(self, wrapped: Callable[..., Any], instance: object) -> str: ... def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ... diff --git a/stubs/Deprecated/deprecated/sphinx.pyi b/stubs/Deprecated/deprecated/sphinx.pyi index c83bfe9f5..b99aef3de 100644 --- a/stubs/Deprecated/deprecated/sphinx.pyi +++ b/stubs/Deprecated/deprecated/sphinx.pyi @@ -18,6 +18,7 @@ class SphinxAdapter(ClassicAdapter): version: str = "", action: _Actions | None = None, category: type[Warning] = ..., + extra_stacklevel: int = 0, line_length: int = 70, ) -> None: ... def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...