HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/flask/__pycache__/globals.cpython-310.pyc
o

'we��@sTUddlmZddlZddlmZddlmZejr>ddl	m
Z
ddlmZddlm
Z
dd	lmZdd
lmZddlmZGd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)�Z!dS)+�)�annotationsN)�
ContextVar)�
LocalProxy�)�Flask)�_AppCtxGlobals)�
AppContext)�RequestContext)�SessionMixin)�Requestc@s$eZdZd
dd�Zedd
d��ZdS)�
_FakeStack�name�str�cv�ContextVar[t.Any]�return�NonecCs||_||_dS)N)r
r)�selfr
r�r�F/home/arjun/projects/env/lib/python3.10/site-packages/flask/globals.py�__init__s
z_FakeStack.__init__�t.Any | NonecCs6ddl}|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)r
rrrrr)rr)�__name__�
__module__�__qualname__r�propertyrrrrrrs
r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)�unbound_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
rr�t.AnycCsP|dkrddl}|jdtdd�tS|dkr$ddl}|jdtdd�tSt|��)N�_app_ctx_stackrz@'_app_ctx_stack' is deprecated and will be removed in Flask 2.4.rr�_request_ctx_stackzD'_request_ctx_stack' is deprecated and will be removed in Flask 2.4.)rrr�__app_ctx_stack�__request_ctx_stack�AttributeError)r
rrrr�__getattr__Ks"��r4)r
rrr.)"�
__future__r�typing�t�contextvarsr�werkzeug.localr�
TYPE_CHECKINGr%r�ctxrrr	�sessionsr
�wrappersrr�_no_app_msgr$�__annotations__r1r'r(r)�_no_req_msgr*r2r,r+r-r4rrrr�<module>sJ
���
���