1 from typing import Any, Optional
\r
3 class Impossible(Exception): ...
\r
5 class NodeType(type):
\r
6 def __new__(cls, name, bases, d): ...
\r
9 environment = ... # type: Any
\r
10 autoescape = ... # type: Any
\r
11 volatile = ... # type: bool
\r
12 def __init__(self, environment, template_name: Optional[Any] = ...) -> None: ...
\r
14 def revert(self, old): ...
\r
16 def get_eval_context(node, ctx): ...
\r
19 fields = ... # type: Any
\r
20 attributes = ... # type: Any
\r
21 abstract = ... # type: bool
\r
22 def __init__(self, *fields, **attributes) -> None: ...
\r
23 def iter_fields(self, exclude: Optional[Any] = ..., only: Optional[Any] = ...): ...
\r
24 def iter_child_nodes(self, exclude: Optional[Any] = ..., only: Optional[Any] = ...): ...
\r
25 def find(self, node_type): ...
\r
26 def find_all(self, node_type): ...
\r
27 def set_ctx(self, ctx): ...
\r
28 def set_lineno(self, lineno, override: bool = ...): ...
\r
29 def set_environment(self, environment): ...
\r
30 def __eq__(self, other): ...
\r
31 def __ne__(self, other): ...
\r
32 __hash__ = ... # type: Any
\r
35 abstract = ... # type: bool
\r
38 abstract = ... # type: bool
\r
40 class Template(Node):
\r
41 fields = ... # type: Any
\r
44 fields = ... # type: Any
\r
46 class Extends(Stmt):
\r
47 fields = ... # type: Any
\r
50 fields = ... # type: Any
\r
53 fields = ... # type: Any
\r
56 fields = ... # type: Any
\r
58 class CallBlock(Stmt):
\r
59 fields = ... # type: Any
\r
61 class FilterBlock(Stmt):
\r
62 fields = ... # type: Any
\r
65 fields = ... # type: Any
\r
67 class Include(Stmt):
\r
68 fields = ... # type: Any
\r
71 fields = ... # type: Any
\r
73 class FromImport(Stmt):
\r
74 fields = ... # type: Any
\r
76 class ExprStmt(Stmt):
\r
77 fields = ... # type: Any
\r
80 fields = ... # type: Any
\r
82 class AssignBlock(Stmt):
\r
83 fields = ... # type: Any
\r
86 abstract = ... # type: bool
\r
87 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
88 def can_assign(self): ...
\r
90 class BinExpr(Expr):
\r
91 fields = ... # type: Any
\r
92 operator = ... # type: Any
\r
93 abstract = ... # type: bool
\r
94 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
96 class UnaryExpr(Expr):
\r
97 fields = ... # type: Any
\r
98 operator = ... # type: Any
\r
99 abstract = ... # type: bool
\r
100 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
103 fields = ... # type: Any
\r
104 def can_assign(self): ...
\r
106 class Literal(Expr):
\r
107 abstract = ... # type: bool
\r
109 class Const(Literal):
\r
110 fields = ... # type: Any
\r
111 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
113 def from_untrusted(cls, value, lineno: Optional[Any] = ..., environment: Optional[Any] = ...): ...
\r
115 class TemplateData(Literal):
\r
116 fields = ... # type: Any
\r
117 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
119 class Tuple(Literal):
\r
120 fields = ... # type: Any
\r
121 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
122 def can_assign(self): ...
\r
124 class List(Literal):
\r
125 fields = ... # type: Any
\r
126 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
128 class Dict(Literal):
\r
129 fields = ... # type: Any
\r
130 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
132 class Pair(Helper):
\r
133 fields = ... # type: Any
\r
134 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
136 class Keyword(Helper):
\r
137 fields = ... # type: Any
\r
138 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
140 class CondExpr(Expr):
\r
141 fields = ... # type: Any
\r
142 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
144 class Filter(Expr):
\r
145 fields = ... # type: Any
\r
146 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
149 fields = ... # type: Any
\r
152 fields = ... # type: Any
\r
153 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
155 class Getitem(Expr):
\r
156 fields = ... # type: Any
\r
157 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
158 def can_assign(self): ...
\r
160 class Getattr(Expr):
\r
161 fields = ... # type: Any
\r
162 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
163 def can_assign(self): ...
\r
166 fields = ... # type: Any
\r
167 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
169 class Concat(Expr):
\r
170 fields = ... # type: Any
\r
171 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
173 class Compare(Expr):
\r
174 fields = ... # type: Any
\r
175 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
177 class Operand(Helper):
\r
178 fields = ... # type: Any
\r
180 class Mul(BinExpr):
\r
181 operator = ... # type: str
\r
183 class Div(BinExpr):
\r
184 operator = ... # type: str
\r
186 class FloorDiv(BinExpr):
\r
187 operator = ... # type: str
\r
189 class Add(BinExpr):
\r
190 operator = ... # type: str
\r
192 class Sub(BinExpr):
\r
193 operator = ... # type: str
\r
195 class Mod(BinExpr):
\r
196 operator = ... # type: str
\r
198 class Pow(BinExpr):
\r
199 operator = ... # type: str
\r
201 class And(BinExpr):
\r
202 operator = ... # type: str
\r
203 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
206 operator = ... # type: str
\r
207 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
209 class Not(UnaryExpr):
\r
210 operator = ... # type: str
\r
212 class Neg(UnaryExpr):
\r
213 operator = ... # type: str
\r
215 class Pos(UnaryExpr):
\r
216 operator = ... # type: str
\r
218 class EnvironmentAttribute(Expr):
\r
219 fields = ... # type: Any
\r
221 class ExtensionAttribute(Expr):
\r
222 fields = ... # type: Any
\r
224 class ImportedName(Expr):
\r
225 fields = ... # type: Any
\r
227 class InternalName(Expr):
\r
228 fields = ... # type: Any
\r
229 def __init__(self) -> None: ...
\r
231 class MarkSafe(Expr):
\r
232 fields = ... # type: Any
\r
233 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
235 class MarkSafeIfAutoescape(Expr):
\r
236 fields = ... # type: Any
\r
237 def as_const(self, eval_ctx: Optional[Any] = ...): ...
\r
239 class ContextReference(Expr): ...
\r
240 class Continue(Stmt): ...
\r
241 class Break(Stmt): ...
\r
244 fields = ... # type: Any
\r
246 class EvalContextModifier(Stmt):
\r
247 fields = ... # type: Any
\r
249 class ScopedEvalContextModifier(EvalContextModifier):
\r
250 fields = ... # type: Any
\r