massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / jinja2 / loaders.pyi
1 from typing import Any, Callable, Iterable, List, Optional, Text, Tuple, Union\r
2 from types import ModuleType\r
3 \r
4 from .environment import Environment\r
5 \r
6 def split_template_path(template: Text) -> List[Text]: ...\r
7 \r
8 class BaseLoader:\r
9     has_source_access = ...  # type: bool\r
10     def get_source(self, environment, template): ...\r
11     def list_templates(self): ...\r
12     def load(self, environment, name, globals: Optional[Any] = ...): ...\r
13 \r
14 class FileSystemLoader(BaseLoader):\r
15     searchpath = ...  # type: Text\r
16     encoding = ...  # type: Any\r
17     followlinks = ...  # type: Any\r
18     def __init__(self, searchpath: Union[Text, Iterable[Text]], encoding: Text = ..., followlinks: bool = ...) -> None: ...\r
19     def get_source(self, environment: Environment, template: Text) -> Tuple[Text, Text, Callable]: ...\r
20     def list_templates(self): ...\r
21 \r
22 class PackageLoader(BaseLoader):\r
23     encoding = ...  # type: Text\r
24     manager = ...  # type: Any\r
25     filesystem_bound = ...  # type: Any\r
26     provider = ...  # type: Any\r
27     package_path = ...  # type: Any\r
28     def __init__(self, package_name: Text, package_path: Text = ..., encoding: Text = ...) -> None: ...\r
29     def get_source(self, environment: Environment, template: Text) -> Tuple[Text, Text, Callable]: ...\r
30     def list_templates(self): ...\r
31 \r
32 class DictLoader(BaseLoader):\r
33     mapping = ...  # type: Any\r
34     def __init__(self, mapping) -> None: ...\r
35     def get_source(self, environment: Environment, template: Text) -> Tuple[Text, Text, Callable]: ...\r
36     def list_templates(self): ...\r
37 \r
38 class FunctionLoader(BaseLoader):\r
39     load_func = ...  # type: Any\r
40     def __init__(self, load_func) -> None: ...\r
41     def get_source(self, environment: Environment, template: Text) -> Tuple[Text, Optional[Text], Optional[Callable]]: ...\r
42 \r
43 class PrefixLoader(BaseLoader):\r
44     mapping = ...  # type: Any\r
45     delimiter = ...  # type: Any\r
46     def __init__(self, mapping, delimiter: str = ...) -> None: ...\r
47     def get_loader(self, template): ...\r
48     def get_source(self, environment: Environment, template: Text) -> Tuple[Text, Text, Callable]: ...\r
49     def load(self, environment, name, globals: Optional[Any] = ...): ...\r
50     def list_templates(self): ...\r
51 \r
52 class ChoiceLoader(BaseLoader):\r
53     loaders = ...  # type: Any\r
54     def __init__(self, loaders) -> None: ...\r
55     def get_source(self, environment: Environment, template: Text) -> Tuple[Text, Text, Callable]: ...\r
56     def load(self, environment, name, globals: Optional[Any] = ...): ...\r
57     def list_templates(self): ...\r
58 \r
59 class _TemplateModule(ModuleType): ...\r
60 \r
61 class ModuleLoader(BaseLoader):\r
62     has_source_access = ...  # type: bool\r
63     module = ...  # type: Any\r
64     package_name = ...  # type: Any\r
65     def __init__(self, path) -> None: ...\r
66     @staticmethod\r
67     def get_template_key(name): ...\r
68     @staticmethod\r
69     def get_module_filename(name): ...\r
70     def load(self, environment, name, globals: Optional[Any] = ...): ...\r