File: D:/web/hyperflight/apps/inxpress/.venv/Lib/site-packages/werkzeug/__pycache__/local.cpython-311.pyc
�
��i�W � �� � d dl mZ d dlZd dlZd dlZd dlZd dlmZ d dl m
Z
d dl mZ d dlmZ ddl
mZ ej rd d lmZ d d
lmZ d dlmZ ej d� � Z ej d
ej dej f �� � Zd%d�Z G d� d� � Z G d� dej e � � Z G d� d� � Z G d� d� � Z G d� de� � Zd&d �Z d'd"�Z! G d#� d$ej e � � Z"dS )(� )�annotationsN)�
ContextVar��partial)�update_wrapper)�
attrgetter� )�ClosingIterator)�
StartResponse)�WSGIApplication)�WSGIEnvironment�T�F.)�bound�local�Local | LocalStack[t.Any]�return�Nonec �. � | � � � dS )z�Release the data for the current context in a :class:`Local` or
:class:`LocalStack` without using a :class:`LocalManager`.
This should not be needed for modern use cases, and may be removed
in the future.
.. versionadded:: 0.6.1
N)�__release_local__)r s �JD:\web\hyperflight\apps\inxpress\.venv\Lib\site-packages\werkzeug/local.py�
release_localr s � �
�������� c �V � e Zd ZdZdZddd�Zdd
�Zdd�dd�Zdd�Zdd�Z dd�Z
dd�ZdS ) �Localaq Create a namespace of context-local data. This wraps a
:class:`ContextVar` containing a :class:`dict` value.
This may incur a performance penalty compared to using individual
context vars, as it has to copy data to avoid mutating the dict
between nested contexts.
:param context_var: The :class:`~contextvars.ContextVar` to use as
storage for this local. If not given, one will be created.
Context vars not created at the global scope may interfere with
garbage collection.
.. versionchanged:: 2.0
Uses ``ContextVar`` instead of a custom storage implementation.
)� __storageN�context_var�#ContextVar[dict[str, t.Any]] | Noner r c � � |� t dt | � � � d�� � }t � | d|� � d S )Nzwerkzeug.Local<� >.storage�_Local__storage)r �id�object�__setattr__��selfr s r �__init__zLocal.__init__6 sK � �� L�
%�%J�r�$�x�x�%J�%J�%J�K�K�K����4�!2�K�@�@�@�@�@r �t.Iterator[tuple[str, t.Any]]c �t � t | j � i � � � � � � � S �N)�iterr! �get�items�r&