1 from typing import Any, Callable, Type, TypeVar, overload
2 from typing_extensions import Literal
4 _F = TypeVar("_F", bound=Callable[..., Any])
5 _Actions = Literal["default", "error", "ignore", "always", "module", "once"]
10 action: _Actions | None
11 category: Type[Warning]
13 self, reason: str = ..., version: str = ..., action: _Actions | None = ..., category: Type[Warning] = ...
15 def get_deprecated_msg(self, wrapped: Callable[..., Any], instance: object) -> str: ...
16 def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...
19 def deprecated(__wrapped: _F) -> _F: ...
22 reason: str = ..., *, version: str = ..., action: _Actions | None = ..., category: Type[Warning] | None = ...
23 ) -> Callable[[_F], _F]: ...