[Deprecated] Update to 1.2.15 (#13020)

This commit is contained in:
Sebastian Rittau
2024-11-16 16:30:53 +01:00
committed by GitHub
parent 6d21e34d78
commit e718a7363f
3 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
version = "1.2.*"
version = "~=1.2.15"
upstream_repository = "https://github.com/tantale/deprecated"
requires = []

View File

@@ -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]: ...

View File

@@ -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]: ...