deprecated: complete stubs (#8169)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanuandhauntsaninja authored and GitHub committed 2022-06-26 10:30:22 +01:00
1 parent 634f18f615
commit ffb25d964c
5 files changed
+11 -5

No files matched your search

+3
View File
@@ -1 +1,4 @@
from .classic import deprecated as deprecated
__credits__: str
__date__: str
+2
View File
@@ -5,6 +5,8 @@ from typing_extensions import Literal, TypeAlias
_F = TypeVar("_F", bound=Callable[..., Any])
_Actions: TypeAlias = Literal["default", "error", "ignore", "always", "module", "once"]
string_types: tuple[type, ...]
class ClassicAdapter:
reason: str
version: str
+3 -2
View File
@@ -19,11 +19,12 @@ class SphinxAdapter(ClassicAdapter):
version: str = ...,
action: _Actions | None = ...,
category: type[Warning] = ...,
line_length: int = ...,
) -> None: ...
def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...
def versionadded(reason: str = ..., version: str = ...) -> Callable[[_F], _F]: ...
def versionchanged(reason: str = ..., version: str = ...) -> Callable[[_F], _F]: ...
def versionadded(reason: str = ..., version: str = ..., line_length: int = ...) -> Callable[[_F], _F]: ...
def versionchanged(reason: str = ..., version: str = ..., line_length: int = ...) -> Callable[[_F], _F]: ...
def deprecated(
reason: str = ...,
version: str = ...,