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
38
39
40
41
42
43
44
45
46
47
48
|
from typing import Any, Iterable, Iterator, List, Optional, Union
from . import AppriseAsset, NotifyBase
from .config import ConfigBase
_Configs = Union[ConfigBase, str, Iterable[str]]
class AppriseConfig:
def __init__(
self,
paths: Optional[_Configs] = ...,
asset: Optional[AppriseAsset] = ...,
cache: bool = ...,
recursion: int = ...,
insecure_includes: bool = ...,
**kwargs: Any
) -> None: ...
def add(
self,
configs: _Configs,
asset: Optional[AppriseAsset] = ...,
cache: bool = ...,
recursion: Optional[bool] = ...,
insecure_includes: Optional[bool] = ...
) -> bool: ...
def add_config(
self,
content: str,
asset: Optional[AppriseAsset] = ...,
tag: Optional[str] = ...,
format: Optional[str] = ...,
recursion: Optional[int] = ...,
insecure_includes: Optional[bool] = ...
) -> bool: ...
def servers(self, tag: str = ..., *args: Any, **kwargs: Any) -> List[ConfigBase]: ...
def instantiate(
url: str,
asset: Optional[AppriseAsset] = ...,
tag: Optional[str] = ...,
cache: Optional[bool] = ...
) -> NotifyBase: ...
def clear(self) -> None: ...
def server_pop(self, index: int) -> ConfigBase: ...
def pop(self, index: int = ...) -> ConfigBase: ...
def __getitem__(self, index: int) -> ConfigBase: ...
def __bool__(self) -> bool: ...
def __iter__(self) -> Iterator[ConfigBase]: ...
def __len__(self) -> int: ...
|