3 from jinja2.environment import Environment
6 UNSAFE_FUNCTION_ATTRIBUTES: Any
7 UNSAFE_METHOD_ATTRIBUTES: Any
8 UNSAFE_GENERATOR_ATTRIBUTES: Any
10 def safe_range(*args): ...
12 def is_internal_attribute(obj, attr): ...
13 def modifies_known_mutable(obj, attr): ...
15 class SandboxedEnvironment(Environment):
17 default_binop_table: Any
18 default_unop_table: Any
19 intercepted_binops: Any
20 intercepted_unops: Any
21 def intercept_unop(self, operator): ...
24 def __init__(self, *args, **kwargs) -> None: ...
25 def is_safe_attribute(self, obj, attr, value): ...
26 def is_safe_callable(self, obj): ...
27 def call_binop(self, context, operator, left, right): ...
28 def call_unop(self, context, operator, arg): ...
29 def getitem(self, obj, argument): ...
30 def getattr(self, obj, attribute): ...
31 def unsafe_undefined(self, obj, attribute): ...
32 def call(__self, __context, __obj, *args, **kwargs): ...
34 class ImmutableSandboxedEnvironment(SandboxedEnvironment):
35 def is_safe_attribute(self, obj, attr, value): ...