1 from typing import Any, Callable, Type, TypeVar
2 from typing_extensions import Literal
4 from .classic import ClassicAdapter, _Actions
6 _F = TypeVar("_F", bound=Callable[..., Any])
8 class SphinxAdapter(ClassicAdapter):
9 directive: Literal["versionadded", "versionchanged", "deprecated"]
12 action: _Actions | None
13 category: Type[Warning]
16 directive: Literal["versionadded", "versionchanged", "deprecated"],
19 action: _Actions | None = ...,
20 category: Type[Warning] = ...,
22 def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...
24 def versionadded(reason: str = ..., version: str = ...) -> Callable[[_F], _F]: ...
25 def versionchanged(reason: str = ..., version: str = ...) -> Callable[[_F], _F]: ...
29 line_length: int = ...,
31 action: _Actions | None = ...,
32 category: Type[Warning] | None = ...,
33 ) -> Callable[[_F], _F]: ...