� ���g����ddlmZddlZddlmZmZddlmZGd�deje e f��Z Gd�de��Z dgZ dS) �)� annotationsN)�ABC�abstractmethod)�Tokenc��eZdZd d�ZdS) �Context�key�str�value�object�return�Nonec��t�)N)� ValueError)�selfr r s �m/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/opentelemetry/context/context.py� __setitem__zContext.__setitem__s����N)r r r r r r)�__name__� __module__� __qualname__r�rrrrs(�����������rrc�Z�eZdZdZed d���Zed d���Zedd ���Zd S)�_RuntimeContextz�The RuntimeContext interface provides a wrapper for the different mechanisms that are used to propagate context in Python. Implementations can be made available via entry_points and selected through environment variables. �contextrr �Token[Context]c��dS)z�Sets the current `Context` object. Returns a token that can be used to reset to the previous `Context`. Args: context: The Context to set. Nr)rrs r�attachz_RuntimeContext.attach"����rc��dS)z%Returns the current `Context` object.Nr)rs r� get_currentz_RuntimeContext.get_current+rr�tokenrc��dS)zpResets Context to a previous value Args: token: A reference to a previous Context. Nr)rr"s r�detachz_RuntimeContext.detach/rrN)rrr r)r r)r"rr r)rrr�__doc__rrr!r$rrrrrs~�������� � � � ��^� ��4�4�4��^�4�� � � ��^� � � rr)� __future__r�typing�abcrr� contextvarsr�Dictr r rr�__all__rrr�<module>r,s���#�"�"�"�"�"� � � � �#�#�#�#�#�#�#�#������������f�k�#�v�+�&����  � � � � �c� � � �: �+���r
Memory