massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / jinja2 / sandbox.pyi
1 from typing import Any\r
2 from jinja2.environment import Environment\r
3 \r
4 MAX_RANGE = ...  # type: int\r
5 UNSAFE_FUNCTION_ATTRIBUTES = ...  # type: Any\r
6 UNSAFE_METHOD_ATTRIBUTES = ...  # type: Any\r
7 UNSAFE_GENERATOR_ATTRIBUTES = ...  # type: Any\r
8 \r
9 def safe_range(*args): ...\r
10 def unsafe(f): ...\r
11 def is_internal_attribute(obj, attr): ...\r
12 def modifies_known_mutable(obj, attr): ...\r
13 \r
14 class SandboxedEnvironment(Environment):\r
15     sandboxed = ...  # type: bool\r
16     default_binop_table = ...  # type: Any\r
17     default_unop_table = ...  # type: Any\r
18     intercepted_binops = ...  # type: Any\r
19     intercepted_unops = ...  # type: Any\r
20     def intercept_unop(self, operator): ...\r
21     binop_table = ...  # type: Any\r
22     unop_table = ...  # type: Any\r
23     def __init__(self, *args, **kwargs) -> None: ...\r
24     def is_safe_attribute(self, obj, attr, value): ...\r
25     def is_safe_callable(self, obj): ...\r
26     def call_binop(self, context, operator, left, right): ...\r
27     def call_unop(self, context, operator, arg): ...\r
28     def getitem(self, obj, argument): ...\r
29     def getattr(self, obj, attribute): ...\r
30     def unsafe_undefined(self, obj, attribute): ...\r
31     def call(__self, __context, __obj, *args, **kwargs): ...\r
32 \r
33 class ImmutableSandboxedEnvironment(SandboxedEnvironment):\r
34     def is_safe_attribute(self, obj, attr, value): ...\r