massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Jinja2 / jinja2 / runtime.pyi
1 from typing import Any, Text
2
3 from jinja2.environment import Environment
4 from jinja2.exceptions import TemplateNotFound as TemplateNotFound, TemplateRuntimeError as TemplateRuntimeError
5 from jinja2.utils import Markup as Markup, concat as concat, escape as escape, missing as missing
6
7 to_string: Any
8 identity: Any
9
10 def markup_join(seq): ...
11 def unicode_join(seq): ...
12
13 class TemplateReference:
14     def __init__(self, context) -> None: ...
15     def __getitem__(self, name): ...
16
17 class Context:
18     parent: Context | dict[str, Any]
19     vars: dict[str, Any]
20     environment: Environment
21     eval_ctx: Any
22     exported_vars: Any
23     name: Text
24     blocks: dict[str, Any]
25     def __init__(
26         self, environment: Environment, parent: Context | dict[str, Any], name: Text, blocks: dict[str, Any]
27     ) -> None: ...
28     def super(self, name, current): ...
29     def get(self, key, default: Any | None = ...): ...
30     def resolve(self, key): ...
31     def get_exported(self): ...
32     def get_all(self): ...
33     def call(__self, __obj, *args, **kwargs): ...
34     def derived(self, locals: Any | None = ...): ...
35     keys: Any
36     values: Any
37     items: Any
38     iterkeys: Any
39     itervalues: Any
40     iteritems: Any
41     def __contains__(self, name): ...
42     def __getitem__(self, key): ...
43
44 class BlockReference:
45     name: Any
46     def __init__(self, name, context, stack, depth) -> None: ...
47     @property
48     def super(self): ...
49     def __call__(self): ...
50
51 class LoopContext:
52     index0: int
53     depth0: Any
54     def __init__(self, iterable, recurse: Any | None = ..., depth0: int = ...) -> None: ...
55     def cycle(self, *args): ...
56     first: Any
57     last: Any
58     index: Any
59     revindex: Any
60     revindex0: Any
61     depth: Any
62     def __len__(self): ...
63     def __iter__(self): ...
64     def loop(self, iterable): ...
65     __call__: Any
66     @property
67     def length(self): ...
68
69 class LoopContextIterator:
70     context: Any
71     def __init__(self, context) -> None: ...
72     def __iter__(self): ...
73     def __next__(self): ...
74
75 class Macro:
76     name: Any
77     arguments: Any
78     defaults: Any
79     catch_kwargs: Any
80     catch_varargs: Any
81     caller: Any
82     def __init__(self, environment, func, name, arguments, defaults, catch_kwargs, catch_varargs, caller) -> None: ...
83     def __call__(self, *args, **kwargs): ...
84
85 class Undefined:
86     def __init__(self, hint: Any | None = ..., obj: Any = ..., name: Any | None = ..., exc: Any = ...) -> None: ...
87     def __getattr__(self, name): ...
88     __add__: Any
89     __radd__: Any
90     __mul__: Any
91     __rmul__: Any
92     __div__: Any
93     __rdiv__: Any
94     __truediv__: Any
95     __rtruediv__: Any
96     __floordiv__: Any
97     __rfloordiv__: Any
98     __mod__: Any
99     __rmod__: Any
100     __pos__: Any
101     __neg__: Any
102     __call__: Any
103     __getitem__: Any
104     __lt__: Any
105     __le__: Any
106     __gt__: Any
107     __ge__: Any
108     __int__: Any
109     __float__: Any
110     __complex__: Any
111     __pow__: Any
112     __rpow__: Any
113     def __eq__(self, other): ...
114     def __ne__(self, other): ...
115     def __hash__(self): ...
116     def __len__(self): ...
117     def __iter__(self): ...
118     def __nonzero__(self): ...
119     __bool__: Any
120
121 def make_logging_undefined(logger: Any | None = ..., base: Any | None = ...): ...
122
123 class DebugUndefined(Undefined): ...
124
125 class StrictUndefined(Undefined):
126     __iter__: Any
127     __len__: Any
128     __nonzero__: Any
129     __eq__: Any
130     __ne__: Any
131     __bool__: Any
132     __hash__: Any