-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathdecorators.pyi
37 lines (32 loc) · 1.14 KB
/
decorators.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from logging import Logger
from typing import Callable
from typing import Set
from typing import Text
from typing import Type
from typing import TypeVar
from qbittorrentapi.request import Request
logger: Logger
APIClassT = TypeVar("APIClassT", bound=Request)
APIReturnValueT = TypeVar("APIReturnValueT")
class alias:
aliases: Set[Text]
def __init__(self, *aliases: Text) -> None: ...
def __call__(
self, func: Callable[..., APIReturnValueT]
) -> Callable[..., APIReturnValueT]: ...
def aliased(aliased_class: Type[APIClassT]) -> Type[APIClassT]: ...
def login_required(
func: Callable[..., APIReturnValueT]
) -> Callable[..., APIReturnValueT]: ...
def handle_hashes(
func: Callable[..., APIReturnValueT]
) -> Callable[..., APIReturnValueT]: ...
def endpoint_introduced(
version_introduced: Text,
endpoint: Text,
) -> Callable[[Callable[..., APIReturnValueT]], Callable[..., APIReturnValueT]]: ...
def version_removed(
version_obsoleted: Text,
endpoint: Text,
) -> Callable[[Callable[..., APIReturnValueT]], Callable[..., APIReturnValueT]]: ...
def check_for_raise(client: Request, error_message: Text) -> None: ...