1from typing import Any, Optional
2
3def release_local(local): ...
4
5class Local:
6    def __init__(self): ...
7    def __iter__(self): ...
8    def __call__(self, proxy): ...
9    def __release_local__(self): ...
10    def __getattr__(self, name): ...
11    def __setattr__(self, name, value): ...
12    def __delattr__(self, name): ...
13
14class LocalStack:
15    def __init__(self): ...
16    def __release_local__(self): ...
17    def _get__ident_func__(self): ...
18    def _set__ident_func__(self, value): ...
19    __ident_func__: Any
20    def __call__(self): ...
21    def push(self, obj): ...
22    def pop(self): ...
23    @property
24    def top(self): ...
25
26class LocalManager:
27    locals: Any
28    ident_func: Any
29    def __init__(self, locals: Optional[Any] = ..., ident_func: Optional[Any] = ...): ...
30    def get_ident(self): ...
31    def cleanup(self): ...
32    def make_middleware(self, app): ...
33    def middleware(self, func): ...
34
35class LocalProxy:
36    def __init__(self, local, name: Optional[Any] = ...): ...
37    @property
38    def __dict__(self): ...
39    def __bool__(self): ...
40    def __unicode__(self): ...
41    def __dir__(self): ...
42    def __getattr__(self, name): ...
43    def __setitem__(self, key, value): ...
44    def __delitem__(self, key): ...
45    __getslice__: Any
46    def __setslice__(self, i, j, seq): ...
47    def __delslice__(self, i, j): ...
48    __setattr__: Any
49    __delattr__: Any
50    __lt__: Any
51    __le__: Any
52    __eq__: Any
53    __ne__: Any
54    __gt__: Any
55    __ge__: Any
56    __cmp__: Any
57    __hash__: Any
58    __call__: Any
59    __len__: Any
60    __getitem__: Any
61    __iter__: Any
62    __contains__: Any
63    __add__: Any
64    __sub__: Any
65    __mul__: Any
66    __floordiv__: Any
67    __mod__: Any
68    __divmod__: Any
69    __pow__: Any
70    __lshift__: Any
71    __rshift__: Any
72    __and__: Any
73    __xor__: Any
74    __or__: Any
75    __div__: Any
76    __truediv__: Any
77    __neg__: Any
78    __pos__: Any
79    __abs__: Any
80    __invert__: Any
81    __complex__: Any
82    __int__: Any
83    __long__: Any
84    __float__: Any
85    __oct__: Any
86    __hex__: Any
87    __index__: Any
88    __coerce__: Any
89    __enter__: Any
90    __exit__: Any
91    __radd__: Any
92    __rsub__: Any
93    __rmul__: Any
94    __rdiv__: Any
95    __rtruediv__: Any
96    __rfloordiv__: Any
97    __rmod__: Any
98    __rdivmod__: Any
99    __copy__: Any
100    __deepcopy__: Any
101