zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
U
ß=®d ã@sZUddlmZddlZddlmZddlmZejr|ddl    m
Z
ddl m Z ddl m Z dd    l mZdd
lmZdd lmZGd d „d ƒZdZedƒZded<edeƒZeeedZded<eededZded<eededZded<dZedƒZded<edeƒZeeedZded <eededZd!ed<eed"edZ d#ed"<d$d%d&œd'd(„Z!dS))é)Ú annotationsN)Ú
ContextVar)Ú
LocalProxyé)ÚFlask)Ú_AppCtxGlobals)Ú
AppContext)ÚRequestContext)Ú SessionMixin)ÚRequestc@s0eZdZddddœdd„Zeddœd    d
„ƒZd S) Ú
_FakeStackÚstrzContextVar[t.Any]ÚNone)ÚnameÚcvÚreturncCs||_||_dS)N)rr)Úselfrr©rúDd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\flask/globals.pyÚ__init__sz_FakeStack.__init__z t.Any | None)rcCs6ddl}|jd|j›d|j›dtdd|j d¡S)Nrz'_zW_ctx_stack' is deprecated and will be removed in Flask 2.4. Use 'g' to store data, or 'z$_ctx' to access the current context.é©Ú
stacklevel)ÚwarningsÚwarnrÚDeprecationWarningrÚget)rrrrrÚtopsûz_FakeStack.topN)Ú__name__Ú
__module__Ú __qualname__rÚpropertyrrrrrr sr zûWorking outside of application context.
 
This typically means that you attempted to use functionality that needed
the current application. To solve this, set up an application context
with app.app_context(). See the documentation for more information.z flask.app_ctxzContextVar[AppContext]Ú_cv_appÚapp)Zunbound_messagerÚapp_ctxrÚ current_appÚgrzÛWorking outside of request context.
 
This typically means that you attempted to use functionality that needed
an active HTTP request. Consult the documentation on testing for
information about how to avoid this problem.zflask.request_ctxzContextVar[RequestContext]Ú _cv_requestÚrequestr    Ú request_ctxr Úsessionr
r zt.Any)rrcCsT|dkr$ddl}|jdtddtS|dkrHddl}|jdtddtSt|ƒ‚dS)NZ_app_ctx_stackrz@'_app_ctx_stack' is deprecated and will be removed in Flask 2.4.rrZ_request_ctx_stackzD'_request_ctx_stack' is deprecated and will be removed in Flask 2.4.)rrrÚ__app_ctx_stackÚ__request_ctx_stackÚAttributeError)rrrrrÚ __getattr__Ks"ýýr.)"Ú
__future__rÚtypingÚtZ contextvarsrZwerkzeug.localrÚ TYPE_CHECKINGr#rÚctxrrr    Úsessionsr
Úwrappersr r Z _no_app_msgr"Ú__annotations__r+r$r%r&Z _no_req_msgr'r,r)r(r*r.rrrrÚ<module>s^         
ÿÿÿ
ÿÿÿ